From 92cfbb7d0ce3012684f07ace5b09c0a607258b62 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 21 May 2020 20:41:28 -0500 Subject: intel/nir: Call nir_metadata_preserve on !progress Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_nir_opt_peephole_ffma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/intel/compiler/brw_nir_opt_peephole_ffma.c') diff --git a/src/intel/compiler/brw_nir_opt_peephole_ffma.c b/src/intel/compiler/brw_nir_opt_peephole_ffma.c index 45a5f56c8aa..813ede4c1cb 100644 --- a/src/intel/compiler/brw_nir_opt_peephole_ffma.c +++ b/src/intel/compiler/brw_nir_opt_peephole_ffma.c @@ -277,9 +277,12 @@ brw_nir_opt_peephole_ffma_impl(nir_function_impl *impl) progress |= brw_nir_opt_peephole_ffma_block(&builder, block); } - if (progress) + if (progress) { nir_metadata_preserve(impl, nir_metadata_block_index | nir_metadata_dominance); + } else { + nir_metadata_preserve(impl, nir_metadata_all); + } return progress; } -- cgit v1.2.3