From 99ff4b3eb21ccc5df670e4dc62073cee96d07f23 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 10 Aug 2016 14:34:37 -0700 Subject: [PATCH] nir/gcm: Call nir_metadata_preserve Signed-off-by: Jason Ekstrand Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/compiler/nir/nir_opt_gcm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_opt_gcm.c b/src/compiler/nir/nir_opt_gcm.c index 84e32ef..02a9348 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 -- 2.7.4