mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 14:20:29 +00:00
Access subtarget specific variables off of the MachineFunction's
cached subtarget and not the TargetMachine. llvm-svn: 219668
This commit is contained in:
parent
1b13c50f59
commit
f0b9de507b
@ -29,7 +29,6 @@
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
using namespace llvm;
|
||||
@ -246,9 +245,8 @@ bool MachineSinking::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
DEBUG(dbgs() << "******** Machine Sinking ********\n");
|
||||
|
||||
const TargetMachine &TM = MF.getTarget();
|
||||
TII = TM.getSubtargetImpl()->getInstrInfo();
|
||||
TRI = TM.getSubtargetImpl()->getRegisterInfo();
|
||||
TII = MF.getSubtarget().getInstrInfo();
|
||||
TRI = MF.getSubtarget().getRegisterInfo();
|
||||
MRI = &MF.getRegInfo();
|
||||
DT = &getAnalysis<MachineDominatorTree>();
|
||||
LI = &getAnalysis<MachineLoopInfo>();
|
||||
|
@ -294,8 +294,8 @@ bool MachineVerifier::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
this->MF = &MF;
|
||||
TM = &MF.getTarget();
|
||||
TII = TM->getSubtargetImpl()->getInstrInfo();
|
||||
TRI = TM->getSubtargetImpl()->getRegisterInfo();
|
||||
TII = MF.getSubtarget().getInstrInfo();
|
||||
TRI = MF.getSubtarget().getRegisterInfo();
|
||||
MRI = &MF.getRegInfo();
|
||||
|
||||
LiveVars = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user