summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_dead_cf.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2016-04-29 20:31:58 +0200
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-30 12:16:22 -0700
commit69357261972ede8ef4c6ed315a416b94c9300724 (patch)
tree9e2cd60a1b619ddb0c040cab448bf40dfd486c15 /src/compiler/nir/nir_opt_dead_cf.c
parent663c0e5155e9916b10163c102f0ece4eda5c3154 (diff)
downloadexternal_mesa3d-69357261972ede8ef4c6ed315a416b94c9300724.zip
external_mesa3d-69357261972ede8ef4c6ed315a416b94c9300724.tar.gz
external_mesa3d-69357261972ede8ef4c6ed315a416b94c9300724.tar.bz2
nir/opt_dead_cf: correction of side effect check
Parenthesis are needed here as ! takes precedence over the &. The check had the opposite effect than intended. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/compiler/nir/nir_opt_dead_cf.c')
-rw-r--r--src/compiler/nir/nir_opt_dead_cf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opt_dead_cf.c b/src/compiler/nir/nir_opt_dead_cf.c
index 2e04c17..7450b1c 100644
--- a/src/compiler/nir/nir_opt_dead_cf.c
+++ b/src/compiler/nir/nir_opt_dead_cf.c
@@ -155,8 +155,8 @@ cf_node_has_side_effects(nir_cf_node *node)
continue;
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
- if (!nir_intrinsic_infos[intrin->intrinsic].flags &
- NIR_INTRINSIC_CAN_ELIMINATE)
+ if (!(nir_intrinsic_infos[intrin->intrinsic].flags &
+ NIR_INTRINSIC_CAN_ELIMINATE))
return true;
}
}