summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopPassManager.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2018-09-20 05:16:29 +0000
committerEric Christopher <echristo@gmail.com>2018-09-20 05:16:29 +0000
commit019889374b0082100913e9332509e58a0e00678f (patch)
tree37d13c9723355e0f1eff2cf11bfed680ac94803b /llvm/lib/Transforms/Scalar/LoopPassManager.cpp
parentec1efe4ee36c82dd4a6f5ed8066bbd4c4795a348 (diff)
downloadbcm5719-llvm-019889374b0082100913e9332509e58a0e00678f.tar.gz
bcm5719-llvm-019889374b0082100913e9332509e58a0e00678f.zip
Temporarily Revert "[New PM] Introducing PassInstrumentation framework"
as it was causing failures in the asan buildbot. This reverts commit r342597. llvm-svn: 342616
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopPassManager.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopPassManager.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopPassManager.cpp b/llvm/lib/Transforms/Scalar/LoopPassManager.cpp
index 6759bd2537c..10f6fcdcfdb 100644
--- a/llvm/lib/Transforms/Scalar/LoopPassManager.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopPassManager.cpp
@@ -30,22 +30,12 @@ PassManager<Loop, LoopAnalysisManager, LoopStandardAnalysisResults &,
if (DebugLogging)
dbgs() << "Starting Loop pass manager run.\n";
- // Request PassInstrumentation from analysis manager, will use it to run
- // instrumenting callbacks for the passes later.
- PassInstrumentation PI = AM.getResult<PassInstrumentationAnalysis>(L, AR);
for (auto &Pass : Passes) {
if (DebugLogging)
dbgs() << "Running pass: " << Pass->name() << " on " << L;
- // Check the PassInstrumentation's BeforePass callbacks before running the
- // pass, skip its execution completely if asked to (callback returns false).
- if (!PI.runBeforePass<Loop>(*Pass, L))
- continue;
-
PreservedAnalyses PassPA = Pass->run(L, AM, AR, U);
- PI.runAfterPass<Loop>(*Pass, L);
-
// If the loop was deleted, abort the run and return to the outer walk.
if (U.skipCurrentLoop()) {
PA.intersect(std::move(PassPA));
OpenPOWER on IntegriCloud