diff options
Diffstat (limited to 'llvm/lib/CodeGen/MIRSampleProfile.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MIRSampleProfile.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MIRSampleProfile.cpp b/llvm/lib/CodeGen/MIRSampleProfile.cpp index 6faa1ad1a779..84e6c612a334 100644 --- a/llvm/lib/CodeGen/MIRSampleProfile.cpp +++ b/llvm/lib/CodeGen/MIRSampleProfile.cpp @@ -70,8 +70,8 @@ INITIALIZE_PASS_BEGIN(MIRProfileLoaderPass, DEBUG_TYPE, "Load MIR Sample Profile", /* cfg = */ false, /* is_analysis = */ false) INITIALIZE_PASS_DEPENDENCY(MachineBlockFrequencyInfo) -INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree) -INITIALIZE_PASS_DEPENDENCY(MachinePostDominatorTree) +INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass) +INITIALIZE_PASS_DEPENDENCY(MachinePostDominatorTreeWrapperPass) INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo) INITIALIZE_PASS_DEPENDENCY(MachineOptimizationRemarkEmitterPass) INITIALIZE_PASS_END(MIRProfileLoaderPass, DEBUG_TYPE, "Load MIR Sample Profile", @@ -365,9 +365,10 @@ bool MIRProfileLoaderPass::runOnMachineFunction(MachineFunction &MF) { << MF.getFunction().getName() << "\n"); MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); MIRSampleLoader->setInitVals( - &getAnalysis<MachineDominatorTree>(), - &getAnalysis<MachinePostDominatorTree>(), &getAnalysis<MachineLoopInfo>(), - MBFI, &getAnalysis<MachineOptimizationRemarkEmitterPass>().getORE()); + &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree(), + &getAnalysis<MachinePostDominatorTreeWrapperPass>().getPostDomTree(), + &getAnalysis<MachineLoopInfo>(), MBFI, + &getAnalysis<MachineOptimizationRemarkEmitterPass>().getORE()); MF.RenumberBlocks(); if (ViewBFIBefore && ViewBlockLayoutWithBFI != GVDT_None && @@ -400,8 +401,8 @@ bool MIRProfileLoaderPass::doInitialization(Module &M) { void MIRProfileLoaderPass::getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); AU.addRequired<MachineBlockFrequencyInfo>(); - AU.addRequired<MachineDominatorTree>(); - AU.addRequired<MachinePostDominatorTree>(); + AU.addRequired<MachineDominatorTreeWrapperPass>(); + AU.addRequired<MachinePostDominatorTreeWrapperPass>(); AU.addRequiredTransitive<MachineLoopInfo>(); AU.addRequired<MachineOptimizationRemarkEmitterPass>(); MachineFunctionPass::getAnalysisUsage(AU); |
