summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
diff options
context:
space:
mode:
authorRuchira Sasanka <sasanka@students.uiuc.edu>2001-10-16 01:25:05 +0000
committerRuchira Sasanka <sasanka@students.uiuc.edu>2001-10-16 01:25:05 +0000
commitcc91b21fe1325ce0dfb36377033ff58da93bc055 (patch)
tree8a9de3e066fde3cbcb9c09f58fe867e1078c5db6 /llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
parent5b8971f418860c1454eaf30092a29ec85a452f92 (diff)
downloadbcm5719-llvm-cc91b21fe1325ce0dfb36377033ff58da93bc055.tar.gz
bcm5719-llvm-cc91b21fe1325ce0dfb36377033ff58da93bc055.zip
No major change - added some comments
llvm-svn: 848
Diffstat (limited to 'llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
index 5c1aa821350..32201beb6a0 100644
--- a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
+++ b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
@@ -54,7 +54,7 @@ void MethodLiveVarInfo::constructBBs()
const BasicBlock *BB = *BBI; // get the current BB
- if(DEBUG_LV) { cerr << " For BB "; printValue(BB); cerr << ":" << endl; }
+ if(DEBUG_LV) { cout << " For BB "; printValue(BB); cout << ":" << endl; }
// create a new BBLiveVar
BBLiveVar * LVBB = new BBLiveVar( BB, POId );
@@ -92,7 +92,7 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
bool ResultFlow, NeedAnotherIteration = false;
if(DEBUG_LV)
- cerr << endl << " After Backward Pass ..." << endl;
+ cout << endl << " After Backward Pass ..." << endl;
po_iterator<const Method*> BBI = po_begin(Meth);
@@ -102,8 +102,8 @@ bool MethodLiveVarInfo::doSingleBackwardPass()
BBLiveVar* LVBB = BB2BBLVMap[*BBI];
assert( LVBB );
- if(DEBUG_LV) cerr << " For BB " << (*BBI)->getName() << ":" << endl;
- // cerr << " (POId=" << LVBB->getPOId() << ")" << endl ;
+ if(DEBUG_LV) cout << " For BB " << (*BBI)->getName() << ":" << endl;
+ // cout << " (POId=" << LVBB->getPOId() << ")" << endl ;
ResultFlow = false;
@@ -133,10 +133,13 @@ void MethodLiveVarInfo::analyze()
{
// Don't analyze the same method twice!
// Later, we need to add change notification here.
+
+
if (HasAnalyzed)
return;
-
- if( DEBUG_LV) cerr << "Analysing live variables ..." << endl;
+
+
+ if( DEBUG_LV) cout << "Analysing live variables ..." << endl;
// create and initialize all the BBLiveVars of the CFG
constructBBs();
@@ -149,7 +152,7 @@ void MethodLiveVarInfo::analyze()
HasAnalyzed = true; // finished analysing
- if( DEBUG_LV) cerr << "Live Variable Analysis complete!" << endl;
+ if( DEBUG_LV) cout << "Live Variable Analysis complete!" << endl;
}
OpenPOWER on IntegriCloud