diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-08-09 00:28:15 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-08-09 00:28:15 +0000 |
commit | 36e0d01e13b32bf318139fd8c43849af7a0e13cc (patch) | |
tree | 2f6750af80a017d71ccef78a8cdbf0e7062ba64d /llvm/lib/Analysis/BranchProbabilityInfo.cpp | |
parent | b9a77f827dcfa5fb06b3be105c381c6b0b641b29 (diff) | |
download | bcm5719-llvm-36e0d01e13b32bf318139fd8c43849af7a0e13cc.tar.gz bcm5719-llvm-36e0d01e13b32bf318139fd8c43849af7a0e13cc.zip |
Consistently use FunctionAnalysisManager
Besides a general consistently benefit, the extra layer of indirection
allows the mechanical part of https://reviews.llvm.org/D23256 that
requires touching every transformation and analysis to be factored out
cleanly.
Thanks to David for the suggestion.
llvm-svn: 278077
Diffstat (limited to 'llvm/lib/Analysis/BranchProbabilityInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/BranchProbabilityInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/BranchProbabilityInfo.cpp b/llvm/lib/Analysis/BranchProbabilityInfo.cpp index d802552d4e2..bf02653b492 100644 --- a/llvm/lib/Analysis/BranchProbabilityInfo.cpp +++ b/llvm/lib/Analysis/BranchProbabilityInfo.cpp @@ -703,14 +703,14 @@ void BranchProbabilityInfoWrapperPass::print(raw_ostream &OS, char BranchProbabilityAnalysis::PassID; BranchProbabilityInfo -BranchProbabilityAnalysis::run(Function &F, AnalysisManager<Function> &AM) { +BranchProbabilityAnalysis::run(Function &F, FunctionAnalysisManager &AM) { BranchProbabilityInfo BPI; BPI.calculate(F, AM.getResult<LoopAnalysis>(F)); return BPI; } PreservedAnalyses -BranchProbabilityPrinterPass::run(Function &F, AnalysisManager<Function> &AM) { +BranchProbabilityPrinterPass::run(Function &F, FunctionAnalysisManager &AM) { OS << "Printing analysis results of BPI for function " << "'" << F.getName() << "':" << "\n"; |