nir/gcm: Call nir_metadata_preserve
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 10 Aug 2016 21:34:37 +0000 (14:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 9 Sep 2016 03:53:01 +0000 (20:53 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_opt_gcm.c

index 84e32ef61a2329e3b4c4a137e317d2ea549d9eca..02a93489ebaf97e9eeff83ac8d62654c9d56ac39 100644 (file)
@@ -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