1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Remember to filter out reserved rergisters from the allocation order.

llvm-svn: 121411
This commit is contained in:
Jakob Stoklund Olesen 2010-12-09 21:20:46 +00:00
parent 5bb5c67227
commit fe4b9ee934

View File

@ -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.