Mesa (master): nir/dominance: Use _mesa_set_clear instead ofhand-rolling it
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Sep 30 17:01:59 UTC 2020
Module: Mesa
Branch: master
Commit: 719c68016a2ebb098473f2f338372b545f7cd0ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=719c68016a2ebb098473f2f338372b545f7cd0ac
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Wed Sep 16 14:37:28 2020 -0500
nir/dominance: Use _mesa_set_clear instead ofhand-rolling it
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6750>
---
src/compiler/nir/nir_dominance.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/compiler/nir/nir_dominance.c b/src/compiler/nir/nir_dominance.c
index 0f4cd5a0cfe..4ea46f8f6f7 100644
--- a/src/compiler/nir/nir_dominance.c
+++ b/src/compiler/nir/nir_dominance.c
@@ -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;
}
More information about the mesa-commit
mailing list