mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-06 11:29:27 +00: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:
parent
4c03772b2a
commit
fe68c73977
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user