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