mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
a06f38e5ae
commit
e3460f15fa
1 changed files with 4 additions and 4 deletions
|
|
@ -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()];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue