nir/dominance: Use _mesa_set_clear instead ofhand-rolling it

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6750>
This commit is contained in:
Jason Ekstrand 2020-09-16 14:37:28 -05:00 committed by Marge Bot
parent b6a4172f10
commit 719c68016a
1 changed files with 1 additions and 3 deletions

View File

@ -46,9 +46,7 @@ init_block(nir_block *block, nir_function_impl *impl)
block->dom_pre_index = UINT32_MAX;
block->dom_post_index = 0;
set_foreach(block->dom_frontier, entry) {
_mesa_set_remove(block->dom_frontier, entry);
}
_mesa_set_clear(block->dom_frontier, NULL);
return true;
}