summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_opt_dce.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/midgard/midgard_opt_dce.c')
-rw-r--r--src/panfrost/midgard/midgard_opt_dce.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_opt_dce.c b/src/panfrost/midgard/midgard_opt_dce.c
index 9964675763c..f2011831944 100644
--- a/src/panfrost/midgard/midgard_opt_dce.c
+++ b/src/panfrost/midgard/midgard_opt_dce.c
@@ -97,6 +97,7 @@ midgard_opt_post_move_eliminate(compiler_context *ctx, midgard_block *block, str
if (ins->type != TAG_ALU_4) continue;
if (ins->compact_branch) continue;
if (!OP_IS_MOVE(ins->alu.op)) continue;
+ if (ins->dont_eliminate) continue;
/* Check we're to the same place post-RA */
unsigned iA = ins->ssa_args.dest;