summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/Analysis.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-07-28 23:31:12 +0000
committerAdam Nemet <anemet@apple.com>2016-07-28 23:31:12 +0000
commitaa3506c5f0b68624895e9643824a52dafaf8ab80 (patch)
tree70c55ad571db6752b8fb77a6c85bc4b169f20e40 /llvm/lib/Analysis/Analysis.cpp
parentae00885108531b573485aea5d6521ebe78535a63 (diff)
downloadbcm5719-llvm-aa3506c5f0b68624895e9643824a52dafaf8ab80.tar.gz
bcm5719-llvm-aa3506c5f0b68624895e9643824a52dafaf8ab80.zip
[BPI] Add new LazyBPI analysis
Summary: The motivation is the same as in D22141: In order to add the hotness attribute to optimization remarks we need BFI to be available in all passes that emit optimization remarks. BFI depends on BPI so unless we make this lazy as well we would still compute BPI unconditionally. The solution is to use the new LazyBPI pass in LazyBFI and only compute BPI when computation of BFI is requested by the client. I extended the laziness test using a LoopDistribute test to also cover BPI. Reviewers: hfinkel, davidxl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D22835 llvm-svn: 277083
Diffstat (limited to 'llvm/lib/Analysis/Analysis.cpp')
-rw-r--r--llvm/lib/Analysis/Analysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/Analysis.cpp b/llvm/lib/Analysis/Analysis.cpp
index c04447ca58c..d31adfa90ed 100644
--- a/llvm/lib/Analysis/Analysis.cpp
+++ b/llvm/lib/Analysis/Analysis.cpp
@@ -54,6 +54,7 @@ void llvm::initializeAnalysis(PassRegistry &Registry) {
initializeIVUsersWrapperPassPass(Registry);
initializeInstCountPass(Registry);
initializeIntervalPartitionPass(Registry);
+ initializeLazyBranchProbabilityInfoPassPass(Registry);
initializeLazyBlockFrequencyInfoPassPass(Registry);
initializeLazyValueInfoWrapperPassPass(Registry);
initializeLintPass(Registry);
OpenPOWER on IntegriCloud