mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Have TargetRegisterInfo::getLargestLegalSuperClass take a
MachineFunction argument so that it can look up the subtarget rather than using a cached one in some Targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1554,7 +1554,8 @@ RAGreedy::tryInstructionSplit(LiveInterval &VirtReg, AllocationOrder &Order,
|
||||
|
||||
DEBUG(dbgs() << "Split around " << Uses.size() << " individual instrs.\n");
|
||||
|
||||
const TargetRegisterClass *SuperRC = TRI->getLargestLegalSuperClass(CurRC);
|
||||
const TargetRegisterClass *SuperRC =
|
||||
TRI->getLargestLegalSuperClass(CurRC, *MF);
|
||||
unsigned SuperRCNumAllocatableRegs = RCI.getNumAllocatableRegs(SuperRC);
|
||||
// Split around every non-copy instruction if this split will relax
|
||||
// the constraints on the virtual register.
|
||||
|
Reference in New Issue
Block a user