mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[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
e081205f26
commit
b949e1f79b
@ -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
Block a user