aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/AliasAnalysisCounter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-18 00:39:19 +0000
committerDevang Patel <dpatel@apple.com>2008-03-18 00:39:19 +0000
commit2b4fa68564c792a120f73ccf659f190fa9caae2c (patch)
treedcbe3d4a2811447eec457bce66c90106e4245c24 /lib/Analysis/AliasAnalysisCounter.cpp
parenteb48523776410ba88eef505b0ce3bdd4c67efdb5 (diff)
downloadexternal_llvm-2b4fa68564c792a120f73ccf659f190fa9caae2c.zip
external_llvm-2b4fa68564c792a120f73ccf659f190fa9caae2c.tar.gz
external_llvm-2b4fa68564c792a120f73ccf659f190fa9caae2c.tar.bz2
Identify Analysis pass.
Do not run analysis pass again if analysis info is still available. This fixes PR1441. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasAnalysisCounter.cpp')
-rw-r--r--lib/Analysis/AliasAnalysisCounter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/AliasAnalysisCounter.cpp b/lib/Analysis/AliasAnalysisCounter.cpp
index 3746253..8b35ea8 100644
--- a/lib/Analysis/AliasAnalysisCounter.cpp
+++ b/lib/Analysis/AliasAnalysisCounter.cpp
@@ -72,6 +72,9 @@ namespace {
}
}
+ /// isAnalysis - Return true if this pass is implementing an analysis pass.
+ virtual bool isAnalysis() const { return true; }
+
bool runOnModule(Module &M) {
this->M = &M;
InitializeAliasAnalysis(this);