mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
aco/ra: Assert operands only clear their own id
This is useful for debugging register assignment, as this case would usually result in RA silently assigning the same register to multiple temps at the same time. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29576>
This commit is contained in:
parent
1967b0f0c4
commit
d5a2666ad9
1 changed files with 6 additions and 1 deletions
|
|
@ -367,7 +367,12 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void clear(Operand op) { clear(op.physReg(), op.regClass()); }
|
||||
void clear(Operand op)
|
||||
{
|
||||
if (op.isTemp() && !is_empty_or_blocked(op.physReg()))
|
||||
assert(get_id(op.physReg()) == op.tempId());
|
||||
clear(op.physReg(), op.regClass());
|
||||
}
|
||||
|
||||
void fill(Definition def)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue