mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
Remove the use and member variable of the TargetMachine from
MachineLICM as we can get the same data off of the MachineFunction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c026db75e7
commit
b15974e996
@ -62,7 +62,6 @@ STATISTIC(NumPostRAHoisted,
|
||||
|
||||
namespace {
|
||||
class MachineLICM : public MachineFunctionPass {
|
||||
const TargetMachine *TM;
|
||||
const TargetInstrInfo *TII;
|
||||
const TargetLoweringBase *TLI;
|
||||
const TargetRegisterInfo *TRI;
|
||||
@ -322,13 +321,12 @@ bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
|
||||
return false;
|
||||
|
||||
Changed = FirstInLoop = false;
|
||||
TM = &MF.getTarget();
|
||||
TII = TM->getSubtargetImpl()->getInstrInfo();
|
||||
TLI = TM->getSubtargetImpl()->getTargetLowering();
|
||||
TRI = TM->getSubtargetImpl()->getRegisterInfo();
|
||||
TII = MF.getSubtarget().getInstrInfo();
|
||||
TLI = MF.getSubtarget().getTargetLowering();
|
||||
TRI = MF.getSubtarget().getRegisterInfo();
|
||||
MFI = MF.getFrameInfo();
|
||||
MRI = &MF.getRegInfo();
|
||||
InstrItins = TM->getSubtargetImpl()->getInstrItineraryData();
|
||||
InstrItins = MF.getSubtarget().getInstrItineraryData();
|
||||
|
||||
PreRegAlloc = MRI->isSSA();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user