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 | 1143eff6289192eb24e168976b56584c131dfa57 (patch) | |
tree | b7c952840f897fc0e51bef8ddc498a201ffb638b | |
parent | b6970c305f91634cd6659813ed13321ab2dba3d4 (diff) | |
download | bcm5719-llvm-1143eff6289192eb24e168976b56584c131dfa57.tar.gz bcm5719-llvm-1143eff6289192eb24e168976b56584c131dfa57.zip |
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).
llvm-svn: 391
-rw-r--r-- | llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index 91c2498e975..e47c9d2bc3c 100644 --- a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/llvm/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 |