forked from OSchip/llvm-project
[X86] Remove WaitInsert::TTI member. NFCI.
This is only ever set/used inside WaitInsert::runOnMachineFunction so don't bother storing it in the class.
This commit is contained in:
parent
a97648b938
commit
e80605e242
|
@ -27,7 +27,6 @@
|
|||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||
#include "llvm/CodeGen/MachineOperand.h"
|
||||
#include "llvm/CodeGen/TargetInstrInfo.h"
|
||||
#include "llvm/IR/DebugLoc.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
||||
|
@ -48,9 +47,6 @@ public:
|
|||
StringRef getPassName() const override {
|
||||
return "X86 insert wait instruction";
|
||||
}
|
||||
|
||||
private:
|
||||
const TargetInstrInfo *TII; // Machine instruction info.
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
@ -119,7 +115,7 @@ bool WaitInsert::runOnMachineFunction(MachineFunction &MF) {
|
|||
return false;
|
||||
|
||||
const X86Subtarget &ST = MF.getSubtarget<X86Subtarget>();
|
||||
TII = ST.getInstrInfo();
|
||||
const X86InstrInfo *TII = ST.getInstrInfo();
|
||||
bool Changed = false;
|
||||
|
||||
for (MachineBasicBlock &MBB : MF) {
|
||||
|
|
Loading…
Reference in New Issue