diff options
author | Jason Ekstrand <[email protected]> | 2020-05-21 20:41:28 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-11 05:08:12 +0000 |
commit | 92cfbb7d0ce3012684f07ace5b09c0a607258b62 (patch) | |
tree | 5a7271aef5a7b62c0a7756e2dba457dede489802 /src/intel/compiler/brw_nir_opt_peephole_ffma.c | |
parent | 2b676b2ce87520042ffb1fae8a9c0d97ba0e3cbc (diff) |
intel/nir: Call nir_metadata_preserve on !progress
Reviewed-by: Kenneth Graunke <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5171>
Diffstat (limited to 'src/intel/compiler/brw_nir_opt_peephole_ffma.c')
-rw-r--r-- | src/intel/compiler/brw_nir_opt_peephole_ffma.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |