[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp InterferenceGraph.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Wed Jul 28 23:43:19 PDT 2004



Changes in directory llvm/lib/Target/SparcV9/RegAlloc:

PhyRegAlloc.cpp updated: 1.155 -> 1.156
InterferenceGraph.cpp updated: 1.20 -> 1.21

---
Log message:

Get rid of calls to void llvm::printSet(const ValueSet &).


---
Diffs of the changes:  (+10 -21)

Index: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.155 llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.156
--- llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.155	Tue Jul 27 12:43:24 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp	Thu Jul 29 01:43:09 2004
@@ -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


Index: llvm/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp:1.20 llvm/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp:1.21
--- llvm/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp:1.20	Sun Jul  4 07:19:56 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp	Thu Jul 29 01:43:09 2004
@@ -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";
   }
 }
 





More information about the llvm-commits mailing list