mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Remember to filter out reserved rergisters from the allocation order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121411 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0382c6290
commit
ff092faffb
@ -165,7 +165,7 @@ bool RAGreedy::reassignVReg(LiveInterval &InterferingVReg,
|
||||
E = TRC->allocation_order_end(*MF);
|
||||
I != E; ++I) {
|
||||
unsigned PhysReg = *I;
|
||||
if (PhysReg == OldPhysReg)
|
||||
if (PhysReg == OldPhysReg || ReservedRegs.test(PhysReg))
|
||||
continue;
|
||||
|
||||
// Instantiate a "subquery", not to be confused with the Queries array.
|
||||
|
Loading…
x
Reference in New Issue
Block a user