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 | 1cee94f04111cfd7114979d6dfddce2669c9380d (patch) | |
tree | dcbe3d4a2811447eec457bce66c90106e4245c24 /include/llvm/Analysis/IntervalPartition.h | |
parent | b176038f989d98ac9f5f1dc2b52b6ef1723b2b78 (diff) |
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 'include/llvm/Analysis/IntervalPartition.h')
-rw-r--r-- | include/llvm/Analysis/IntervalPartition.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/IntervalPartition.h b/include/llvm/Analysis/IntervalPartition.h index 8b85e7c08b..855e3a44c4 100644 --- a/include/llvm/Analysis/IntervalPartition.h +++ b/include/llvm/Analysis/IntervalPartition.h @@ -49,6 +49,9 @@ public: IntervalPartition() : FunctionPass((intptr_t)&ID), RootInterval(0) {} + /// isAnalysis - Return true if this pass is implementing an analysis pass. + virtual bool isAnalysis() const { return true; } + // run - Calculate the interval partition for this function virtual bool runOnFunction(Function &F); |