summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2020-01-21 15:07:24 -0800
committerMarge Bot <eric+marge@anholt.net>2020-01-23 01:52:43 +0000
commit4413537c80b58978f61f468a5a36d1d75756d6b3 (patch)
tree67363cae1c92d1d406bee03f5016318bc55b5c78 /src/compiler
parentd3eb2a0951ede3c7dcce891c3a153f3ebbb59bae (diff)
util: Remove tmp argument from BITSET_FOREACH_SET macro
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_phi_builder.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_phi_builder.c b/src/compiler/nir/nir_phi_builder.c
index 97edea777f4..f8de1d78fc9 100644
--- a/src/compiler/nir/nir_phi_builder.c
+++ b/src/compiler/nir/nir_phi_builder.c
@@ -132,8 +132,7 @@ nir_phi_builder_add_value(struct nir_phi_builder *pb, unsigned num_components,
pb->iter_count++;
- BITSET_WORD tmp;
- BITSET_FOREACH_SET(i, tmp, defs, pb->num_blocks) {
+ BITSET_FOREACH_SET(i, defs, pb->num_blocks) {
if (pb->work[i] < pb->iter_count)
pb->W[w_end++] = pb->blocks[i];
pb->work[i] = pb->iter_count;