aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_idiv_const.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_idiv_const.c')
-rw-r--r--src/compiler/nir/nir_opt_idiv_const.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_idiv_const.c b/src/compiler/nir/nir_opt_idiv_const.c
index 688186779e6..2992d060317 100644
--- a/src/compiler/nir/nir_opt_idiv_const.c
+++ b/src/compiler/nir/nir_opt_idiv_const.c
@@ -198,6 +198,8 @@ nir_opt_idiv_const_impl(nir_function_impl *impl, unsigned min_bit_size)
if (progress) {
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
+ } else {
+ nir_metadata_preserve(impl, nir_metadata_all);
}
return progress;