summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-08-10 14:34:37 -0700
committerJason Ekstrand <[email protected]>2016-09-08 20:53:01 -0700
commit99ff4b3eb21ccc5df670e4dc62073cee96d07f23 (patch)
tree6580db9aec85b460fbd8364dc0c03b18449b05e2 /src/compiler/nir
parent02675622b02742960678c438f1b239321c075f50 (diff)
nir/gcm: Call nir_metadata_preserve
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_opt_gcm.c3
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