mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Remove LIS::isAllocatable() and isReserved() helpers.
All callers can simply use the corresponding MRI functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -110,8 +110,6 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
||||
DomTree = &getAnalysis<MachineDominatorTree>();
|
||||
if (!LRCalc)
|
||||
LRCalc = new LiveRangeCalc();
|
||||
AllocatableRegs = TRI->getAllocatableSet(fn);
|
||||
ReservedRegs = TRI->getReservedRegs(fn);
|
||||
|
||||
// Allocate space for all virtual registers.
|
||||
VirtRegIntervals.resize(MRI->getNumVirtRegs());
|
||||
@ -542,11 +540,11 @@ void LiveIntervals::computeRegUnitInterval(LiveInterval *LI) {
|
||||
// Ignore uses of reserved registers. We only track defs of those.
|
||||
for (MCRegUnitRootIterator Roots(Unit, TRI); Roots.isValid(); ++Roots) {
|
||||
unsigned Root = *Roots;
|
||||
if (!isReserved(Root) && !MRI->reg_empty(Root))
|
||||
if (!MRI->isReserved(Root) && !MRI->reg_empty(Root))
|
||||
LRCalc->extendToUses(LI, Root);
|
||||
for (MCSuperRegIterator Supers(Root, TRI); Supers.isValid(); ++Supers) {
|
||||
unsigned Reg = *Supers;
|
||||
if (!isReserved(Reg) && !MRI->reg_empty(Reg))
|
||||
if (!MRI->isReserved(Reg) && !MRI->reg_empty(Reg))
|
||||
LRCalc->extendToUses(LI, Reg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user