mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 16:56:39 +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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
402ace79fc
commit
8b5f6cc0a4
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user