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
This commit is contained in:
Vikram S. Adve 2001-08-28 22:36:35 +00:00
parent 402ace79fc
commit 8b5f6cc0a4
2 changed files with 10 additions and 2 deletions

View File

@ -114,6 +114,10 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
// performs live var anal for a method // performs live var anal for a method
void MethodLiveVarInfo::analyze() 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; if( DEBUG_LV) cout << "Analysing live variables ..." << endl;

View File

@ -114,6 +114,10 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
// performs live var anal for a method // performs live var anal for a method
void MethodLiveVarInfo::analyze() 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; if( DEBUG_LV) cout << "Analysing live variables ..." << endl;