aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_dead_cf.c
diff options
context:
space:
mode:
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, 1 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_opt_dead_cf.c b/src/compiler/nir/nir_opt_dead_cf.c
index a798da5d588..01d3699b84a 100644
--- a/src/compiler/nir/nir_opt_dead_cf.c
+++ b/src/compiler/nir/nir_opt_dead_cf.c
@@ -374,9 +374,7 @@ opt_dead_cf_impl(nir_function_impl *impl)
*/
nir_repair_ssa_impl(impl);
} else {
-#ifndef NDEBUG
- impl->valid_metadata &= ~nir_metadata_not_properly_reset;
-#endif
+ nir_metadata_preserve(impl, nir_metadata_all);
}
return progress;