mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +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:
@@ -29,6 +29,7 @@ AllocationOrder::AllocationOrder(unsigned VirtReg,
|
||||
const TargetRegisterClass *RC = VRM.getRegInfo().getRegClass(VirtReg);
|
||||
std::pair<unsigned, unsigned> HintPair =
|
||||
VRM.getRegInfo().getRegAllocationHint(VirtReg);
|
||||
const MachineRegisterInfo &MRI = VRM.getRegInfo();
|
||||
|
||||
// HintPair.second is a register, phys or virt.
|
||||
Hint = HintPair.second;
|
||||
@@ -52,7 +53,7 @@ AllocationOrder::AllocationOrder(unsigned VirtReg,
|
||||
unsigned *P = new unsigned[Order.size()];
|
||||
Begin = P;
|
||||
for (unsigned i = 0; i != Order.size(); ++i)
|
||||
if (!RCI.isReserved(Order[i]))
|
||||
if (!MRI.isReserved(Order[i]))
|
||||
*P++ = Order[i];
|
||||
End = P;
|
||||
|
||||
@@ -69,7 +70,7 @@ AllocationOrder::AllocationOrder(unsigned VirtReg,
|
||||
|
||||
// The hint must be a valid physreg for allocation.
|
||||
if (Hint && (!TargetRegisterInfo::isPhysicalRegister(Hint) ||
|
||||
!RC->contains(Hint) || RCI.isReserved(Hint)))
|
||||
!RC->contains(Hint) || MRI.isReserved(Hint)))
|
||||
Hint = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user