diff options
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PHIElimination.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp index 3254ec0b77fe..592972f5c83b 100644 --- a/llvm/lib/CodeGen/PHIElimination.cpp +++ b/llvm/lib/CodeGen/PHIElimination.cpp @@ -139,7 +139,7 @@ void PHIElimination::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved<LiveVariables>(); AU.addPreserved<SlotIndexes>(); AU.addPreserved<LiveIntervals>(); - AU.addPreserved<MachineDominatorTree>(); + AU.addPreserved<MachineDominatorTreeWrapperPass>(); AU.addPreserved<MachineLoopInfo>(); MachineFunctionPass::getAnalysisUsage(AU); } @@ -216,8 +216,8 @@ bool PHIElimination::runOnMachineFunction(MachineFunction &MF) { // TODO: we should use the incremental DomTree updater here. if (Changed) - if (auto *MDT = getAnalysisIfAvailable<MachineDominatorTree>()) - MDT->getBase().recalculate(MF); + if (auto *MDT = getAnalysisIfAvailable<MachineDominatorTreeWrapperPass>()) + MDT->getDomTree().getBase().recalculate(MF); LoweredPHIs.clear(); ImpDefs.clear(); |
