diff options
author | Eric Christopher <echristo@gmail.com> | 2018-09-20 05:16:29 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2018-09-20 05:16:29 +0000 |
commit | 019889374b0082100913e9332509e58a0e00678f (patch) | |
tree | 37d13c9723355e0f1eff2cf11bfed680ac94803b /llvm/lib/Transforms/Scalar/LoopPassManager.cpp | |
parent | ec1efe4ee36c82dd4a6f5ed8066bbd4c4795a348 (diff) | |
download | bcm5719-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.cpp | 10 |
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)); |