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:
parent
b94251aea0
commit
d76e5132e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user