aco/opt: Work around GCC compiler issue
No functional change. Random code churn that, apparently, makes a GCC miscompile disappear. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34531>
This commit is contained in:
@@ -3445,14 +3445,14 @@ combine_vop3p(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
||||
continue;
|
||||
}
|
||||
|
||||
Operand op[3] = {op_instr->operands[0], op_instr->operands[1], instr->operands[1 - i]};
|
||||
if (ctx.uses[instr->operands[i].tempId()] >= uses || !check_vop3_operands(ctx, 3, op))
|
||||
continue;
|
||||
|
||||
/* no clamp allowed between mul and add */
|
||||
if (op_instr->valu().clamp)
|
||||
continue;
|
||||
|
||||
Operand op[3] = {op_instr->operands[0], op_instr->operands[1], instr->operands[1 - i]};
|
||||
if (ctx.uses[instr->operands[i].tempId()] >= uses || !check_vop3_operands(ctx, 3, op))
|
||||
continue;
|
||||
|
||||
mul_instr = op_instr;
|
||||
add_op_idx = 1 - i;
|
||||
uses = ctx.uses[instr->operands[i].tempId()];
|
||||
|
||||
Reference in New Issue
Block a user