mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Remove RegisterClassInfo::isReserved() and isAllocatable().
Clients can use the equivalent functions in MRI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -509,7 +509,7 @@ RAFast::LiveRegMap::iterator RAFast::allocVirtReg(MachineInstr *MI,
|
||||
|
||||
// Ignore invalid hints.
|
||||
if (Hint && (!TargetRegisterInfo::isPhysicalRegister(Hint) ||
|
||||
!RC->contains(Hint) || !RegClassInfo.isAllocatable(Hint)))
|
||||
!RC->contains(Hint) || !MRI->isAllocatable(Hint)))
|
||||
Hint = 0;
|
||||
|
||||
// Take hint when possible.
|
||||
@@ -838,7 +838,7 @@ void RAFast::AllocateBasicBlock() {
|
||||
// Add live-in registers as live.
|
||||
for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(),
|
||||
E = MBB->livein_end(); I != E; ++I)
|
||||
if (RegClassInfo.isAllocatable(*I))
|
||||
if (MRI->isAllocatable(*I))
|
||||
definePhysReg(MII, *I, regReserved);
|
||||
|
||||
SmallVector<unsigned, 8> VirtDead;
|
||||
@@ -970,7 +970,7 @@ void RAFast::AllocateBasicBlock() {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (!RegClassInfo.isAllocatable(Reg)) continue;
|
||||
if (!MRI->isAllocatable(Reg)) continue;
|
||||
if (MO.isUse()) {
|
||||
usePhysReg(MO);
|
||||
} else if (MO.isEarlyClobber()) {
|
||||
@@ -1058,7 +1058,7 @@ void RAFast::AllocateBasicBlock() {
|
||||
unsigned Reg = MO.getReg();
|
||||
|
||||
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
|
||||
if (!RegClassInfo.isAllocatable(Reg)) continue;
|
||||
if (!MRI->isAllocatable(Reg)) continue;
|
||||
definePhysReg(MI, Reg, (MO.isImplicit() || MO.isDead()) ?
|
||||
regFree : regReserved);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user