@@ -662,8 +662,6 @@ void SSAIfConv::convertIf(SmallVectorImpl<MachineBasicBlock *> &RemoveBlocks) {
662
662
663
663
namespace {
664
664
class EarlyIfConverter : public MachineFunctionPass {
665
- const TargetInstrInfo *TII = nullptr ;
666
- const TargetRegisterInfo *TRI = nullptr ;
667
665
MCSchedModel SchedModel;
668
666
MachineRegisterInfo *MRI = nullptr ;
669
667
MachineDominatorTree *DomTree = nullptr ;
@@ -1027,8 +1025,6 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
1027
1025
if (!STI.enableEarlyIfConversion ())
1028
1026
return false ;
1029
1027
1030
- TII = STI.getInstrInfo ();
1031
- TRI = STI.getRegisterInfo ();
1032
1028
SchedModel = STI.getSchedModel ();
1033
1029
MRI = &MF.getRegInfo ();
1034
1030
DomTree = &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree ();
@@ -1058,9 +1054,7 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
1058
1054
namespace {
1059
1055
class EarlyIfPredicator : public MachineFunctionPass {
1060
1056
const TargetInstrInfo *TII = nullptr ;
1061
- const TargetRegisterInfo *TRI = nullptr ;
1062
1057
TargetSchedModel SchedModel;
1063
- MachineRegisterInfo *MRI = nullptr ;
1064
1058
MachineDominatorTree *DomTree = nullptr ;
1065
1059
MachineBranchProbabilityInfo *MBPI = nullptr ;
1066
1060
MachineLoopInfo *Loops = nullptr ;
@@ -1207,8 +1201,6 @@ bool EarlyIfPredicator::runOnMachineFunction(MachineFunction &MF) {
1207
1201
1208
1202
const TargetSubtargetInfo &STI = MF.getSubtarget ();
1209
1203
TII = STI.getInstrInfo ();
1210
- TRI = STI.getRegisterInfo ();
1211
- MRI = &MF.getRegInfo ();
1212
1204
SchedModel.init (&STI);
1213
1205
DomTree = &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree ();
1214
1206
Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI ();
0 commit comments