1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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
This commit is contained in:
Vikram S. Adve 2001-08-28 22:36:35 +00:00
parent 4c03772b2a
commit fe68c73977

View File

@ -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