projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nir: Remove deref chain support from opt_undef
[mesa.git]
/
src
/
compiler
/
nir
/
nir_opt_gcm.c
diff --git
a/src/compiler/nir/nir_opt_gcm.c
b/src/compiler/nir/nir_opt_gcm.c
index cff2315da30d6141be68335d301b8bd3b4c3d5ab..879a77a884b046e8b307d97996a46a9f745cfb9c 100644
(file)
--- a/
src/compiler/nir/nir_opt_gcm.c
+++ b/
src/compiler/nir/nir_opt_gcm.c
@@
-456,6
+456,9
@@
gcm_place_instr(nir_instr *instr, struct gcm_state *state)
static bool
opt_gcm_impl(nir_function_impl *impl, bool value_number)
{
static bool
opt_gcm_impl(nir_function_impl *impl, bool value_number)
{
+ nir_metadata_require(impl, nir_metadata_block_index |
+ nir_metadata_dominance);
+
struct gcm_state state;
state.impl = impl;
struct gcm_state state;
state.impl = impl;
@@
-463,9
+466,6
@@
opt_gcm_impl(nir_function_impl *impl, bool value_number)
exec_list_make_empty(&state.instrs);
state.blocks = rzalloc_array(NULL, struct gcm_block_info, impl->num_blocks);
exec_list_make_empty(&state.instrs);
state.blocks = rzalloc_array(NULL, struct gcm_block_info, impl->num_blocks);
- nir_metadata_require(impl, nir_metadata_block_index |
- nir_metadata_dominance);
-
gcm_build_block_info(&impl->body, &state, 0);
nir_foreach_block(block, impl) {
gcm_build_block_info(&impl->body, &state, 0);
nir_foreach_block(block, impl) {