aco: add return address to call_clobbered_regs

It's better for handle_call() to make sure these SGPRs are clear.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Natalie Vock <natalie.vock@gmx.de>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39590>
This commit is contained in:
Rhys Perry 2026-01-27 16:30:52 +00:00 committed by Marge Bot
parent 837afd7faf
commit ec74e34672

View file

@ -3954,6 +3954,9 @@ register_allocation(Program* program, ra_test_policy policy)
}
BITSET_NOT(call_clobbered_regs);
BITSET_SET(call_clobbered_regs, instr->definitions[0].physReg().reg());
BITSET_SET(call_clobbered_regs, instr->definitions[0].physReg().reg() + 1);
/* Allow linear VGPRs in the clobbered range.
* Linear VGPRs are spilled in spill_preserved, and the stack pointer is always
* guaranteed to be preserved.