diff options
author | Christudasan Devadasan <christudasan.devadasan@amd.com> | 2024-09-04 18:43:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 18:43:09 +0530 |
commit | 4552153c37e04def01e99e32c02eab245d92b753 (patch) | |
tree | e8483df85a02ea7251ef3257b0a3c9427c047e1d /llvm/lib/CodeGen/MachineCSE.cpp | |
parent | f11915153761e0c2691945add795c891e63c0c4a (diff) | |
download | llvm-4552153c37e04def01e99e32c02eab245d92b753.zip llvm-4552153c37e04def01e99e32c02eab245d92b753.tar.gz llvm-4552153c37e04def01e99e32c02eab245d92b753.tar.bz2 |
[CodeGen][MachineCSE] Remove unused AA results(NFC) (#106604)
Alias Analysis result is never used in this pass
and hence removing it.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCSE.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp index aadc54b..2ac1fae 100644 --- a/llvm/lib/CodeGen/MachineCSE.cpp +++ b/llvm/lib/CodeGen/MachineCSE.cpp @@ -18,7 +18,6 @@ #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/Statistic.h" -#include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/CFG.h" #include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineBlockFrequencyInfo.h" @@ -73,7 +72,6 @@ namespace { class MachineCSE : public MachineFunctionPass { const TargetInstrInfo *TII = nullptr; const TargetRegisterInfo *TRI = nullptr; - AliasAnalysis *AA = nullptr; MachineDominatorTree *DT = nullptr; MachineRegisterInfo *MRI = nullptr; MachineBlockFrequencyInfo *MBFI = nullptr; @@ -90,7 +88,6 @@ namespace { void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesCFG(); MachineFunctionPass::getAnalysisUsage(AU); - AU.addRequired<AAResultsWrapperPass>(); AU.addPreservedID(MachineLoopInfoID); AU.addRequired<MachineDominatorTreeWrapperPass>(); AU.addPreserved<MachineDominatorTreeWrapperPass>(); @@ -167,7 +164,6 @@ char &llvm::MachineCSEID = MachineCSE::ID; INITIALIZE_PASS_BEGIN(MachineCSE, DEBUG_TYPE, "Machine Common Subexpression Elimination", false, false) INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass) -INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass) INITIALIZE_PASS_END(MachineCSE, DEBUG_TYPE, "Machine Common Subexpression Elimination", false, false) @@ -943,7 +939,6 @@ bool MachineCSE::runOnMachineFunction(MachineFunction &MF) { TII = MF.getSubtarget().getInstrInfo(); TRI = MF.getSubtarget().getRegisterInfo(); MRI = &MF.getRegInfo(); - AA = &getAnalysis<AAResultsWrapperPass>().getAAResults(); DT = &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree(); MBFI = &getAnalysis<MachineBlockFrequencyInfoWrapperPass>().getMBFI(); LookAheadLimit = TII->getMachineCSELookAheadLimit(); |