diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-18 00:39:19 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-18 00:39:19 +0000 |
commit | 2b4fa68564c792a120f73ccf659f190fa9caae2c (patch) | |
tree | dcbe3d4a2811447eec457bce66c90106e4245c24 /lib/Analysis/AliasAnalysisCounter.cpp | |
parent | eb48523776410ba88eef505b0ce3bdd4c67efdb5 (diff) | |
download | external_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.cpp | 3 |
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); |