diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index c8d325ea512..07dbb611536 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -3942,7 +3942,7 @@ combine_instruction(opt_ctx& ctx, aco_ptr& instr) bool emit_fma = false; /* find the 'best' mul instruction to combine with the add */ for (unsigned i = is_add_mix ? 1 : 0; i < instr->operands.size(); i++) { - if (!instr->operands[i].isTemp() || !ctx.info[instr->operands[i].tempId()].is_usedef()) + if (!instr->operands[i].isTemp()) continue; ssa_info& info = ctx.info[instr->operands[i].tempId()]; if (!is_mul(info.parent_instr))