1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Ignore unallocatable registers in RegAllocFast.

llvm-svn: 112632
This commit is contained in:
Jakob Stoklund Olesen 2010-08-31 19:54:25 +00:00
parent b94251aea0
commit d76e5132e7

View File

@ -736,7 +736,8 @@ void RAFast::AllocateBasicBlock() {
// Add live-in registers as live.
for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(),
E = MBB->livein_end(); I != E; ++I)
definePhysReg(MII, *I, regReserved);
if (Allocatable.test(*I))
definePhysReg(MII, *I, regReserved);
SmallVector<unsigned, 8> VirtDead;
SmallVector<MachineInstr*, 32> Coalesced;