[PATCH] D79080: [BPI][NFC] IRCE shoud qequest BPI through analysis manager.
Evgeniy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 02:07:26 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3acf62f3ad30: [BPI][NFC] IRCE shoud qequest BPI through analysis manager. (authored by ebrevnov).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79080/new/
https://reviews.llvm.org/D79080
Files:
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
Index: llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
+++ llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
@@ -1768,12 +1768,9 @@
PreservedAnalyses IRCEPass::run(Function &F, FunctionAnalysisManager &AM) {
auto &SE = AM.getResult<ScalarEvolutionAnalysis>(F);
auto &DT = AM.getResult<DominatorTreeAnalysis>(F);
- auto *PDT = AM.getCachedResult<PostDominatorTreeAnalysis>(F);
+ auto &BPI = AM.getResult<BranchProbabilityAnalysis>(F);
LoopInfo &LI = AM.getResult<LoopAnalysis>(F);
- TargetLibraryInfo &TLI = AM.getResult<TargetLibraryAnalysis>(F);
- // TODO: Request BPI through AM directly?
- BranchProbabilityInfo BPI(F, LI, &TLI, PDT);
InductiveRangeCheckElimination IRCE(SE, &BPI, DT, LI);
bool Changed = false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79080.261153.patch
Type: text/x-patch
Size: 900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/9ac84912/attachment.bin>
More information about the llvm-commits
mailing list