aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-15 18:15:27 +0000
committerChris Lattner <sabre@nondot.org>2001-10-15 18:15:27 +0000
commit1e23ed7c653bb73984766cd3868da4d372ac47f8 (patch)
tree6eae47934e94ea7432fc865ac898615b63b1263e /lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
parent18fc812a1b47100f773e48fdd7392d1c22876e88 (diff)
Output to cerr rather than cout so that debug info doesn't mess up assembly generation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp')
-rw-r--r--lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
index d8ec2470aa..4efe30e9e0 100644
--- a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
+++ b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
@@ -7,7 +7,7 @@ InterferenceGraph::InterferenceGraph(RegClass *const RC) : RegCl(RC),
IG = NULL;
Size = 0;
if( DEBUG_RA) {
- cout << "Interference graph created!" << endl;
+ cerr << "Interference graph created!" << endl;
}
}
@@ -65,7 +65,7 @@ void InterferenceGraph::setInterference(const LiveRange *const LR1,
char *val;
if( DEBUG_RA > 1)
- cout << "setting intf for: [" << row << "][" << col << "]" << endl;
+ cerr << "setting intf for: [" << row << "][" << col << "]" << endl;
( row > col) ? val = &IG[row][col]: val = &IG[col][row];
@@ -118,9 +118,9 @@ void InterferenceGraph::mergeIGNodesOfLRs(const LiveRange *const LR1,
assertIGNode( SrcNode );
if( DEBUG_RA > 1) {
- cout << "Merging LRs: \""; LR1->printSet();
- cout << "\" and \""; LR2->printSet();
- cout << "\"" << endl;
+ cerr << "Merging LRs: \""; LR1->printSet();
+ cerr << "\" and \""; LR2->printSet();
+ cerr << "\"" << endl;
}
unsigned SrcDegree = SrcNode->getNumOfNeighbors();
@@ -147,10 +147,10 @@ void InterferenceGraph::mergeIGNodesOfLRs(const LiveRange *const LR1,
setInterference(LR1, LROfNeigh );
}
- //cout<< " #Neighs - Neigh: ["<< NeighNode->getIndex()<< "] ";
- //cout << NeighNode->getNumOfNeighbors();
- //cout << " Dest: [" << DestNode->getIndex() << "] ";
- //cout << DestNode->getNumOfNeighbors() << endl;
+ //cerr<< " #Neighs - Neigh: ["<< NeighNode->getIndex()<< "] ";
+ //cerr << NeighNode->getNumOfNeighbors();
+ //cerr << " Dest: [" << DestNode->getIndex() << "] ";
+ //cerr << DestNode->getNumOfNeighbors() << endl;
}
@@ -193,13 +193,13 @@ void InterferenceGraph::printIG() const
if( ! Node )
continue; // skip empty rows
- cout << " [" << i << "] ";
+ cerr << " [" << i << "] ";
for( unsigned int j=0; j < Size; j++) {
if( j >= i) break;
- if( IG[i][j] ) cout << "(" << i << "," << j << ") ";
+ if( IG[i][j] ) cerr << "(" << i << "," << j << ") ";
}
- cout << endl;
+ cerr << endl;
}
}
@@ -215,10 +215,10 @@ void InterferenceGraph::printIGNodeList() const
if( ! Node )
continue;
- cout << " [" << Node->getIndex() << "] ";
+ cerr << " [" << Node->getIndex() << "] ";
(Node->getParentLR())->printSet();
//int Deg = Node->getCurDegree();
- cout << "\t <# of Neighs: " << Node->getNumOfNeighbors() << ">" << endl;
+ cerr << "\t <# of Neighs: " << Node->getNumOfNeighbors() << ">" << endl;
}
}