Skip to content

Commit a3aa452

Browse files
authored
[CodeGen] RegisterCoalescer: Remove unused AliasAnalysis dependency (llvm#124773)
1 parent 71edfd6 commit a3aa452

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/CodeGen/RegisterCoalescer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "llvm/ADT/SmallPtrSet.h"
2121
#include "llvm/ADT/SmallVector.h"
2222
#include "llvm/ADT/Statistic.h"
23-
#include "llvm/Analysis/AliasAnalysis.h"
2423
#include "llvm/CodeGen/LiveInterval.h"
2524
#include "llvm/CodeGen/LiveIntervals.h"
2625
#include "llvm/CodeGen/LiveRangeEdit.h"
@@ -130,7 +129,6 @@ class RegisterCoalescer : public MachineFunctionPass,
130129
const TargetInstrInfo *TII = nullptr;
131130
LiveIntervals *LIS = nullptr;
132131
const MachineLoopInfo *Loops = nullptr;
133-
AliasAnalysis *AA = nullptr;
134132
RegisterClassInfo RegClassInfo;
135133

136134
/// Position and VReg of a PHI instruction during coalescing.
@@ -408,7 +406,6 @@ INITIALIZE_PASS_BEGIN(RegisterCoalescer, "register-coalescer",
408406
INITIALIZE_PASS_DEPENDENCY(LiveIntervalsWrapperPass)
409407
INITIALIZE_PASS_DEPENDENCY(SlotIndexesWrapperPass)
410408
INITIALIZE_PASS_DEPENDENCY(MachineLoopInfoWrapperPass)
411-
INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
412409
INITIALIZE_PASS_END(RegisterCoalescer, "register-coalescer",
413410
"Register Coalescer", false, false)
414411

@@ -588,7 +585,6 @@ bool CoalescerPair::isCoalescable(const MachineInstr *MI) const {
588585

589586
void RegisterCoalescer::getAnalysisUsage(AnalysisUsage &AU) const {
590587
AU.setPreservesCFG();
591-
AU.addRequired<AAResultsWrapperPass>();
592588
AU.addRequired<LiveIntervalsWrapperPass>();
593589
AU.addPreserved<LiveIntervalsWrapperPass>();
594590
AU.addPreserved<SlotIndexesWrapperPass>();
@@ -4265,7 +4261,6 @@ bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) {
42654261
TRI = STI.getRegisterInfo();
42664262
TII = STI.getInstrInfo();
42674263
LIS = &getAnalysis<LiveIntervalsWrapperPass>().getLIS();
4268-
AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
42694264
Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI();
42704265
if (EnableGlobalCopies == cl::BOU_UNSET)
42714266
JoinGlobalCopies = STI.enableJoinGlobalCopies();

0 commit comments

Comments
 (0)