diff options
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_opt_gcm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_gcm.c b/src/compiler/nir/nir_opt_gcm.c index 84e32ef61a2..02a93489eba 100644 --- a/src/compiler/nir/nir_opt_gcm.c +++ b/src/compiler/nir/nir_opt_gcm.c @@ -483,6 +483,9 @@ opt_gcm_impl(nir_function_impl *impl) } ralloc_free(state.blocks); + + nir_metadata_preserve(impl, nir_metadata_block_index | + nir_metadata_dominance); } void |