diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index 67e9bc17611..a34e074cb92 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -2740,6 +2740,7 @@ combine_not_xor(opt_ctx& ctx, aco_ptr& instr) ctx.uses[instr->operands[0].tempId()]--; std::swap(instr->definitions[0], op_instr->definitions[0]); op_instr->opcode = aco_opcode::v_xnor_b32; + ctx.info[op_instr->definitions[0].tempId()].label = 0; return true; } @@ -2965,6 +2966,7 @@ use_absdiff: std::swap(instr->definitions[0], op_instr->definitions[0]); std::swap(instr->definitions[1], op_instr->definitions[1]); ctx.uses[instr->operands[0].tempId()]--; + ctx.info[op_instr->definitions[0].tempId()].label = 0; return true; }