mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Ignore unallocatable registers in RegAllocFast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81b79b5fa8
commit
9d4b51b696
@ -736,7 +736,8 @@ void RAFast::AllocateBasicBlock() {
|
|||||||
// Add live-in registers as live.
|
// Add live-in registers as live.
|
||||||
for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(),
|
for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(),
|
||||||
E = MBB->livein_end(); I != E; ++I)
|
E = MBB->livein_end(); I != E; ++I)
|
||||||
definePhysReg(MII, *I, regReserved);
|
if (Allocatable.test(*I))
|
||||||
|
definePhysReg(MII, *I, regReserved);
|
||||||
|
|
||||||
SmallVector<unsigned, 8> VirtDead;
|
SmallVector<unsigned, 8> VirtDead;
|
||||||
SmallVector<MachineInstr*, 32> Coalesced;
|
SmallVector<MachineInstr*, 32> Coalesced;
|
||||||
|
Loading…
Reference in New Issue
Block a user