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/Analysis/CGSCCPassManager.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/Analysis/CGSCCPassManager.cpp')
-rw-r--r-- | llvm/lib/Analysis/CGSCCPassManager.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp index 6965235326d..b325afb8e7c 100644 --- a/llvm/lib/Analysis/CGSCCPassManager.cpp +++ b/llvm/lib/Analysis/CGSCCPassManager.cpp @@ -54,11 +54,6 @@ PassManager<LazyCallGraph::SCC, CGSCCAnalysisManager, LazyCallGraph &, CGSCCUpdateResult &>::run(LazyCallGraph::SCC &InitialC, CGSCCAnalysisManager &AM, LazyCallGraph &G, CGSCCUpdateResult &UR) { - // Request PassInstrumentation from analysis manager, will use it to run - // instrumenting callbacks for the passes later. - PassInstrumentation PI = - AM.getResult<PassInstrumentationAnalysis>(InitialC, G); - PreservedAnalyses PA = PreservedAnalyses::all(); if (DebugLogging) @@ -72,15 +67,8 @@ PassManager<LazyCallGraph::SCC, CGSCCAnalysisManager, LazyCallGraph &, if (DebugLogging) dbgs() << "Running pass: " << Pass->name() << " on " << *C << "\n"; - // Check the PassInstrumentation's BeforePass callbacks before running the - // pass, skip its execution completely if asked to (callback returns false). - if (!PI.runBeforePass(*Pass, *C)) - continue; - PreservedAnalyses PassPA = Pass->run(*C, AM, G, UR); - PI.runAfterPass(*Pass, *C); - // Update the SCC if necessary. C = UR.UpdatedC ? UR.UpdatedC : C; |