Skip to content

Commit 3c83102

Browse files
committed
[NFC][EarlyIfConverter] Remove unused member variables
1 parent 9e73159 commit 3c83102

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/CodeGen/EarlyIfConversion.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,6 @@ void SSAIfConv::convertIf(SmallVectorImpl<MachineBasicBlock *> &RemoveBlocks) {
662662

663663
namespace {
664664
class EarlyIfConverter : public MachineFunctionPass {
665-
const TargetInstrInfo *TII = nullptr;
666-
const TargetRegisterInfo *TRI = nullptr;
667665
MCSchedModel SchedModel;
668666
MachineRegisterInfo *MRI = nullptr;
669667
MachineDominatorTree *DomTree = nullptr;
@@ -1027,8 +1025,6 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
10271025
if (!STI.enableEarlyIfConversion())
10281026
return false;
10291027

1030-
TII = STI.getInstrInfo();
1031-
TRI = STI.getRegisterInfo();
10321028
SchedModel = STI.getSchedModel();
10331029
MRI = &MF.getRegInfo();
10341030
DomTree = &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree();
@@ -1058,9 +1054,7 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
10581054
namespace {
10591055
class EarlyIfPredicator : public MachineFunctionPass {
10601056
const TargetInstrInfo *TII = nullptr;
1061-
const TargetRegisterInfo *TRI = nullptr;
10621057
TargetSchedModel SchedModel;
1063-
MachineRegisterInfo *MRI = nullptr;
10641058
MachineDominatorTree *DomTree = nullptr;
10651059
MachineBranchProbabilityInfo *MBPI = nullptr;
10661060
MachineLoopInfo *Loops = nullptr;
@@ -1207,8 +1201,6 @@ bool EarlyIfPredicator::runOnMachineFunction(MachineFunction &MF) {
12071201

12081202
const TargetSubtargetInfo &STI = MF.getSubtarget();
12091203
TII = STI.getInstrInfo();
1210-
TRI = STI.getRegisterInfo();
1211-
MRI = &MF.getRegInfo();
12121204
SchedModel.init(&STI);
12131205
DomTree = &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree();
12141206
Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI();

0 commit comments

Comments
 (0)