aco/ra: always block register file for precolored operands

so that they don't accidentally get renamed.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31387>
This commit is contained in:
Daniel Schürmann 2024-09-11 16:07:32 +02:00 committed by Marge Bot
parent 18e7e8d8f0
commit ef47cce51c

View file

@ -346,7 +346,9 @@ public:
void fill_killed_operands(Instruction* instr)
{
for (Operand& op : instr->operands) {
if (op.isFixed() && op.isFirstKillBeforeDef()) {
if (op.isPrecolored()) {
block(op.physReg(), op.regClass());
} else if (op.isFixed() && op.isFirstKillBeforeDef()) {
if (op.regClass().is_subdword())
fill_subdword(op.physReg(), op.bytes(), op.tempId());
else