mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 08:50:49 +02:00
aco: Don't skip combine_instruction when definitions[1] is used.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
parent
338d03090f
commit
1c44129db3
1 changed files with 1 additions and 1 deletions
|
|
@ -2150,7 +2150,7 @@ bool apply_omod_clamp(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
|||
|
||||
void combine_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
||||
{
|
||||
if (instr->definitions.empty() || !ctx.uses[instr->definitions[0].tempId()])
|
||||
if (instr->definitions.empty() || is_dead(ctx.uses, instr.get()))
|
||||
return;
|
||||
|
||||
if (instr->isVALU()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue