summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CGSCCPassManager.cpp
diff options
context:
space:
mode:
authorFedor Sergeev <fedor.sergeev@azul.com>2018-09-19 14:54:48 +0000
committerFedor Sergeev <fedor.sergeev@azul.com>2018-09-19 14:54:48 +0000
commit25de3f83bef903d82c52d1718fd1d3a0d8815745 (patch)
treedc9a8452247c0db500852d44e8e627afa20e8c08 /llvm/lib/Analysis/CGSCCPassManager.cpp
parent896c03d0b36a456b922e5f7efe2efa1cc89decc4 (diff)
downloadbcm5719-llvm-25de3f83bef903d82c52d1718fd1d3a0d8815745.tar.gz
bcm5719-llvm-25de3f83bef903d82c52d1718fd1d3a0d8815745.zip
Revert rL342544: [New PM] Introducing PassInstrumentation framework
A bunch of bots fail to compile unittests. Reverting. llvm-svn: 342552
Diffstat (limited to 'llvm/lib/Analysis/CGSCCPassManager.cpp')
-rw-r--r--llvm/lib/Analysis/CGSCCPassManager.cpp12
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;
OpenPOWER on IntegriCloud