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:
parent
b6a4172f10
commit
719c68016a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue