summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2017-05-04 16:58:45 +0000
committerEaswaran Raman <eraman@google.com>2017-05-04 16:58:45 +0000
commit5e6f9bd4f8d7361ab16d437274d338750f16e1b8 (patch)
treeecddc771698a70ddf77efc1195b35550abae5b17 /llvm/lib
parent4a4875628f8bc329a437f9e68fe545f430ef9ae9 (diff)
downloadbcm5719-llvm-5e6f9bd4f8d7361ab16d437274d338750f16e1b8.tar.gz
bcm5719-llvm-5e6f9bd4f8d7361ab16d437274d338750f16e1b8.zip
[PM] Add ProfileSummaryAnalysis as a required pass in the new pipeline.
Differential revision: https://reviews.llvm.org/D32768 llvm-svn: 302170
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Passes/PassBuilder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 8db65f7f0e8..7076e751071 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -505,6 +505,10 @@ PassBuilder::buildPerModuleDefaultPipeline(OptimizationLevel Level,
// the CGSCC pipeline.
MPM.addPass(RequireAnalysisPass<GlobalsAA, Module>());
+ // Require the ProfileSummaryAnalysis for the module so we can query it within
+ // the inliner pass.
+ MPM.addPass(RequireAnalysisPass<ProfileSummaryAnalysis, Module>());
+
// Now begin the main postorder CGSCC pipeline.
// FIXME: The current CGSCC pipeline has its origins in the legacy pass
// manager and trying to emulate its precise behavior. Much of this doesn't
OpenPOWER on IntegriCloud