mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Remove the use and member variable of the TargetMachine from
MachineLICM as we can get the same data off of the MachineFunction. llvm-svn: 219663
This commit is contained in:
parent
6f2145e3fc
commit
d5f6f42397
@ -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