mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
aco: ignore copykill+latekill operands in get_temp_reg_changes
This is possible with two vectors which share a temporary, though I don't think it currently happens in practice. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40825>
This commit is contained in:
parent
590d1d7274
commit
1619288a19
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ RegisterDemand get_temp_reg_changes(Instruction* instr)
|
|||
}
|
||||
|
||||
for (Operand op : instr->operands) {
|
||||
if (op.isFirstKillBeforeDef() || op.isCopyKill())
|
||||
if (op.isFirstKillBeforeDef() || (op.isCopyKill() && !op.isLateKill()))
|
||||
available_def_space -= op.getTemp();
|
||||
else if (op.isClobbered() && !op.isKill())
|
||||
available_def_space -= op.getTemp();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue