Get rid of calls to void llvm::printSet(const ValueSet &).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15322 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
index a02cdef..9344e63 100644
--- a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
+++ b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
@@ -157,9 +157,7 @@
assertIGNode(this, SrcNode);
if( DEBUG_RA >= RA_DEBUG_Interference) {
- std::cerr << "Merging LRs: \""; printSet(*LR1);
- std::cerr << "\" and \""; printSet(*LR2);
- std::cerr << "\"\n";
+ std::cerr << "Merging LRs: \"" << *LR1 << "\" and \"" << *LR2 << "\"\n";
}
unsigned SrcDegree = SrcNode->getNumOfNeighbors();
@@ -240,13 +238,9 @@
void InterferenceGraph::printIGNodeList() const {
for(unsigned i=0; i < IGNodeList.size() ; ++i) {
const IGNode *const Node = IGNodeList[i];
-
- if (Node) {
- std::cerr << " [" << Node->getIndex() << "] ";
- printSet(*Node->getParentLR());
- //int Deg = Node->getCurDegree();
- std::cerr << "\t <# of Neighs: " << Node->getNumOfNeighbors() << ">\n";
- }
+ if (Node)
+ std::cerr << " [" << Node->getIndex() << "] " << *Node->getParentLR()
+ << "\t <# of Neighbors: " << Node->getNumOfNeighbors() << ">\n";
}
}
diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
index 26424ef..99d0e7cc 100644
--- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
@@ -175,22 +175,17 @@
LIt != LEnd; ++LIt) {
// get the live range corresponding to live var
- LiveRange *const LR = LRI->getLiveRangeForValue(*LIt );
+ LiveRange *const LR = LRI->getLiveRangeForValue(*LIt);
// LR can be null if it is a const since a const
// doesn't have a dominating def - see Assumptions above
- if (LR ) {
- if (DEBUG_RA >= RA_DEBUG_Interference) {
- std::cerr << "\n\tLR after Call: ";
- printSet(*LR);
- }
+ if (LR) {
+ if (DEBUG_RA >= RA_DEBUG_Interference)
+ std::cerr << "\n\tLR after Call: " << *LR << "\n";
LR->setCallInterference();
- if (DEBUG_RA >= RA_DEBUG_Interference) {
- std::cerr << "\n ++After adding call interference for LR: " ;
- printSet(*LR);
- }
+ if (DEBUG_RA >= RA_DEBUG_Interference)
+ std::cerr << "\n ++After adding call interference for LR: " << *LR << "\n";
}
-
}
// Now find the LR of the return value of the call