diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-08-28 22:36:35 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-08-28 22:36:35 +0000 |
commit | 8b5f6cc0a4805c8cc64c22b02d34009452ebeef2 (patch) | |
tree | bceecc3d4b1f2c7b90f873fc09a2ee102aacd0cc /lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | |
parent | 402ace79fcb4bb504cc953ab1598eca7184e7db4 (diff) |
analyze() now checks to see that we don't analyze the same method twice.
Needs a mechnanism to override this check (e.g., after a transformation).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp')
-rw-r--r-- | lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index 91c2498e97..e47c9d2bc3 100644 --- a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp @@ -114,7 +114,11 @@ bool MethodLiveVarInfo::doSingleBackwardPass() // performs live var anal for a method void MethodLiveVarInfo::analyze() { - + // Don't analyze the same method twice! + // Later, we need to add change notification here. + if (HasAnalyzed) + return; + if( DEBUG_LV) cout << "Analysing live variables ..." << endl; // create and initialize all the BBLiveVars of the CFG |