summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_from_ssa.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-12-12 16:25:38 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:20:21 -0800
commit295faf9462cba88250d8581f65611996eba5e389 (patch)
treeaafe263df770d4596119f8b62547a96430fead15 /src/glsl/nir/nir_from_ssa.c
parentb6c81b3ff453d51898f86a819f80ea1128aea0fe (diff)
nir: Call nir_metadata_preserve more places
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_from_ssa.c')
-rw-r--r--src/glsl/nir/nir_from_ssa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_from_ssa.c b/src/glsl/nir/nir_from_ssa.c
index f99ba9b7828..d3295804b5a 100644
--- a/src/glsl/nir/nir_from_ssa.c
+++ b/src/glsl/nir/nir_from_ssa.c
@@ -843,6 +843,9 @@ nir_convert_from_ssa_impl(nir_function_impl *impl)
nir_foreach_block(impl, resolve_parallel_copies_block, &state);
+ nir_metadata_preserve(impl, nir_metadata_block_index |
+ nir_metadata_dominance);
+
/* Clean up dead instructions and the hash tables */
_mesa_hash_table_destroy(state.ssa_table, NULL);
_mesa_hash_table_destroy(state.merge_node_table, NULL);