|
20 | 20 | #include "llvm/ADT/SmallPtrSet.h" |
21 | 21 | #include "llvm/ADT/SmallVector.h" |
22 | 22 | #include "llvm/ADT/Statistic.h" |
23 | | -#include "llvm/Analysis/AliasAnalysis.h" |
24 | 23 | #include "llvm/CodeGen/LiveInterval.h" |
25 | 24 | #include "llvm/CodeGen/LiveIntervals.h" |
26 | 25 | #include "llvm/CodeGen/LiveRangeEdit.h" |
@@ -130,7 +129,6 @@ class RegisterCoalescer : public MachineFunctionPass, |
130 | 129 | const TargetInstrInfo *TII = nullptr; |
131 | 130 | LiveIntervals *LIS = nullptr; |
132 | 131 | const MachineLoopInfo *Loops = nullptr; |
133 | | - AliasAnalysis *AA = nullptr; |
134 | 132 | RegisterClassInfo RegClassInfo; |
135 | 133 |
|
136 | 134 | /// Position and VReg of a PHI instruction during coalescing. |
@@ -408,7 +406,6 @@ INITIALIZE_PASS_BEGIN(RegisterCoalescer, "register-coalescer", |
408 | 406 | INITIALIZE_PASS_DEPENDENCY(LiveIntervalsWrapperPass) |
409 | 407 | INITIALIZE_PASS_DEPENDENCY(SlotIndexesWrapperPass) |
410 | 408 | INITIALIZE_PASS_DEPENDENCY(MachineLoopInfoWrapperPass) |
411 | | -INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass) |
412 | 409 | INITIALIZE_PASS_END(RegisterCoalescer, "register-coalescer", |
413 | 410 | "Register Coalescer", false, false) |
414 | 411 |
|
@@ -588,7 +585,6 @@ bool CoalescerPair::isCoalescable(const MachineInstr *MI) const { |
588 | 585 |
|
589 | 586 | void RegisterCoalescer::getAnalysisUsage(AnalysisUsage &AU) const { |
590 | 587 | AU.setPreservesCFG(); |
591 | | - AU.addRequired<AAResultsWrapperPass>(); |
592 | 588 | AU.addRequired<LiveIntervalsWrapperPass>(); |
593 | 589 | AU.addPreserved<LiveIntervalsWrapperPass>(); |
594 | 590 | AU.addPreserved<SlotIndexesWrapperPass>(); |
@@ -4265,7 +4261,6 @@ bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) { |
4265 | 4261 | TRI = STI.getRegisterInfo(); |
4266 | 4262 | TII = STI.getInstrInfo(); |
4267 | 4263 | LIS = &getAnalysis<LiveIntervalsWrapperPass>().getLIS(); |
4268 | | - AA = &getAnalysis<AAResultsWrapperPass>().getAAResults(); |
4269 | 4264 | Loops = &getAnalysis<MachineLoopInfoWrapperPass>().getLI(); |
4270 | 4265 | if (EnableGlobalCopies == cl::BOU_UNSET) |
4271 | 4266 | JoinGlobalCopies = STI.enableJoinGlobalCopies(); |
|
0 commit comments