summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2017-01-15 10:23:18 +0000
committerSerge Pavlov <sepavloff@gmail.com>2017-01-15 10:23:18 +0000
commited5eb933840f85fd3db135cc6f8d7a847c7921e4 (patch)
treec41569156aae8f23348ae6bfa6401731484348a7 /llvm/lib/Analysis
parentbf56ad36cb79c1912bf8bf6725b634652d462dda (diff)
downloadbcm5719-llvm-ed5eb933840f85fd3db135cc6f8d7a847c7921e4.tar.gz
bcm5719-llvm-ed5eb933840f85fd3db135cc6f8d7a847c7921e4.zip
Reverted: Track validity of pass results
Commits r291882 and related r291887. llvm-svn: 292062
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/CallGraphSCCPass.cpp1
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp6
-rw-r--r--llvm/lib/Analysis/LoopPass.cpp1
-rw-r--r--llvm/lib/Analysis/RegionPass.cpp1
4 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp
index 290fd34cff5..9cef7814415 100644
--- a/llvm/lib/Analysis/CallGraphSCCPass.cpp
+++ b/llvm/lib/Analysis/CallGraphSCCPass.cpp
@@ -414,7 +414,6 @@ bool CGPassManager::RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG,
initializeAnalysisImpl(P);
// Actually run this pass on the current SCC.
- P->setExecuted(true);
Changed |= RunPassOnSCC(P, CurSCC, CG,
CallGraphUpToDate, DevirtualizedCall);
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index fb05e60e57d..714e0d5173f 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/lib/Analysis/LoopInfo.cpp
@@ -731,10 +731,8 @@ void LoopInfoWrapperPass::verifyAnalysis() const {
// checking by default, LoopPass has been taught to call verifyLoop manually
// during loop pass sequences.
if (VerifyLoopInfo) {
- if (auto *Analysis = getAnalysisIfAvailable<DominatorTreeWrapperPass>()) {
- auto &DT = Analysis->getDomTree();
- LI.verify(DT);
- }
+ auto &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
+ LI.verify(DT);
}
}
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp
index d3e697e5c61..3f4a0794215 100644
--- a/llvm/lib/Analysis/LoopPass.cpp
+++ b/llvm/lib/Analysis/LoopPass.cpp
@@ -198,7 +198,6 @@ bool LPPassManager::runOnFunction(Function &F) {
PassManagerPrettyStackEntry X(P, *CurrentLoop->getHeader());
TimeRegion PassTimer(getPassTimer(P));
- P->setExecuted(true);
Changed |= P->runOnLoop(CurrentLoop, *this);
}
LoopWasDeleted = CurrentLoop->isInvalid();
diff --git a/llvm/lib/Analysis/RegionPass.cpp b/llvm/lib/Analysis/RegionPass.cpp
index 1c1e6210c64..7358aa6810a 100644
--- a/llvm/lib/Analysis/RegionPass.cpp
+++ b/llvm/lib/Analysis/RegionPass.cpp
@@ -94,7 +94,6 @@ bool RGPassManager::runOnFunction(Function &F) {
PassManagerPrettyStackEntry X(P, *CurrentRegion->getEntry());
TimeRegion PassTimer(getPassTimer(P));
- P->setExecuted(true);
Changed |= P->runOnRegion(CurrentRegion, *this);
}
OpenPOWER on IntegriCloud