diff options
author | paperchalice <liujunchang97@outlook.com> | 2024-06-27 15:00:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 15:00:17 +0800 |
commit | ab58b6d58edf6a7c8881044fc716ca435d7a0156 (patch) | |
tree | dc7dee41ae286979f9f55ea6258f1bc5852431d3 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 002e819247b59debe71605aad9967203a119886b (diff) | |
download | llvm-ab58b6d58edf6a7c8881044fc716ca435d7a0156.zip llvm-ab58b6d58edf6a7c8881044fc716ca435d7a0156.tar.gz llvm-ab58b6d58edf6a7c8881044fc716ca435d7a0156.tar.bz2 |
Revert "[CodeGen][NewPM] Port machine-branch-prob to new pass manager" (#96858)
Reverts llvm/llvm-project#96389
Some ppc bots failed.
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 1b6a6ee..c6c48cf 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -99,7 +99,7 @@ namespace { void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<MachineBlockFrequencyInfo>(); - AU.addRequired<MachineBranchProbabilityInfoWrapperPass>(); + AU.addRequired<MachineBranchProbabilityInfo>(); AU.addRequired<ProfileSummaryInfoWrapperPass>(); AU.addRequired<TargetPassConfig>(); MachineFunctionPass::getAnalysisUsage(AU); @@ -131,10 +131,9 @@ bool BranchFolderPass::runOnMachineFunction(MachineFunction &MF) { PassConfig->getEnableTailMerge(); MBFIWrapper MBBFreqInfo( getAnalysis<MachineBlockFrequencyInfo>()); - BranchFolder Folder( - EnableTailMerge, /*CommonHoist=*/true, MBBFreqInfo, - getAnalysis<MachineBranchProbabilityInfoWrapperPass>().getMBPI(), - &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI()); + BranchFolder Folder(EnableTailMerge, /*CommonHoist=*/true, MBBFreqInfo, + getAnalysis<MachineBranchProbabilityInfo>(), + &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI()); return Folder.OptimizeFunction(MF, MF.getSubtarget().getInstrInfo(), MF.getSubtarget().getRegisterInfo()); } |