mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +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:
@@ -165,7 +165,7 @@ bool RAGreedy::reassignVReg(LiveInterval &InterferingVReg,
|
|||||||
E = TRC->allocation_order_end(*MF);
|
E = TRC->allocation_order_end(*MF);
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
unsigned PhysReg = *I;
|
unsigned PhysReg = *I;
|
||||||
if (PhysReg == OldPhysReg)
|
if (PhysReg == OldPhysReg || ReservedRegs.test(PhysReg))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Instantiate a "subquery", not to be confused with the Queries array.
|
// Instantiate a "subquery", not to be confused with the Queries array.
|
||||||
|
|||||||
Reference in New Issue
Block a user