[llvm] 3c83102 - [NFC][EarlyIfConverter] Remove unused member variables
Juan Manuel Martinez Caamaño via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 01:53:51 PDT 2024
Author: Juan Manuel Martinez Caamaño
Date: 2024-09-20T10:31:28+02:00
New Revision: 3c83102f0615c7d66f6df698ca472ddbf0e9483d
URL: https://github.com/llvm/llvm-project/commit/3c83102f0615c7d66f6df698ca472ddbf0e9483d
DIFF: https://github.com/llvm/llvm-project/commit/3c83102f0615c7d66f6df698ca472ddbf0e9483d.diff
LOG: [NFC][EarlyIfConverter] Remove unused member variables
Added:
Modified:
llvm/lib/CodeGen/EarlyIfConversion.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp
index 1b200c5d49189e..994a00b1b9699d 100644
--- a/llvm/lib/CodeGen/EarlyIfConversion.cpp
+++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp
@@ -662,8 +662,6 @@ void SSAIfConv::convertIf(SmallVectorImpl<MachineBasicBlock *> &RemoveBlocks) {
namespace {
class EarlyIfConverter : public MachineFunctionPass {
- const TargetInstrInfo *TII = nullptr;
- const TargetRegisterInfo *TRI = nullptr;
MCSchedModel SchedModel;
MachineRegisterInfo *MRI = nullptr;
MachineDominatorTree *DomTree = nullptr;
@@ -1027,8 +1025,6 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
if (!STI.enableEarlyIfConversion())
return false;
- TII = STI.getInstrInfo();
- TRI = STI.getRegisterInfo();
SchedModel = STI.getSchedModel();
MRI = &MF.getRegInfo();
DomTree = &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree();
@@ -1058,9 +1054,7 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
namespace {
class EarlyIfPredicator : public MachineFunctionPass {
const TargetInstrInfo *TII = nullptr;
- const TargetRegisterInfo *TRI = nullptr;
TargetSchedModel SchedModel;
- MachineRegisterInfo *MRI = nullptr;
MachineDominatorTree *DomTree = nullptr;
MachineBranchProbabilityInfo *MBPI = nullptr;
MachineLoopInfo *Loops = nullptr;
@@ -1207,8 +1201,6 @@ bool EarlyIfPredicator::runOnMachineFunction(MachineFunction &MF) {
const TargetSubtargetInfo &STI = MF.getSubtarget();
TII = STI.getInstrInfo();
- TRI = STI.getRegisterInfo();
- MRI = &MF.getRegInfo();
SchedModel.init(&STI);
DomTree = &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree();
Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI();
More information about the llvm-commits
mailing list