mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Grab the subtarget and subtarget dependent variables off of
MachineFunction rather than TargetMachine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2317,13 +2317,13 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
|
||||
<< "********** Function: " << mf.getName() << '\n');
|
||||
|
||||
MF = &mf;
|
||||
const TargetMachine &TM = MF->getTarget();
|
||||
TRI = TM.getSubtargetImpl()->getRegisterInfo();
|
||||
TII = TM.getSubtargetImpl()->getInstrInfo();
|
||||
TRI = MF->getSubtarget().getRegisterInfo();
|
||||
TII = MF->getSubtarget().getInstrInfo();
|
||||
RCI.runOnMachineFunction(mf);
|
||||
|
||||
EnableLocalReassign = EnableLocalReassignment ||
|
||||
TM.getSubtargetImpl()->enableRALocalReassignment(TM.getOptLevel());
|
||||
MF->getSubtarget().enableRALocalReassignment(
|
||||
MF->getTarget().getOptLevel());
|
||||
|
||||
if (VerifyEnabled)
|
||||
MF->verify(this, "Before greedy register allocator");
|
||||
|
Reference in New Issue
Block a user