[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9RegClassInfo.cpp

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



Changes in directory llvm/lib/Target/SparcV9:

SparcV9RegClassInfo.cpp updated: 1.38 -> 1.39

---
Log message:

Get rid of calls to void llvm::printSet(const ValueSet &).
Use LiveRange's iterator types and operations instead of ValueSet's.


---
Diffs of the changes:  (+8 -9)

Index: llvm/lib/Target/SparcV9/SparcV9RegClassInfo.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9RegClassInfo.cpp:1.38 llvm/lib/Target/SparcV9/SparcV9RegClassInfo.cpp:1.39
--- llvm/lib/Target/SparcV9/SparcV9RegClassInfo.cpp:1.38	Wed Jul 28 23:15:36 2004
+++ llvm/lib/Target/SparcV9/SparcV9RegClassInfo.cpp	Thu Jul 29 01:43:08 2004
@@ -41,10 +41,9 @@
 {
   LiveRange *LR = Node->getParentLR();
 
-  if (DEBUG_RA) {
-    std::cerr << "\nColoring LR [CallInt=" << LR->isCallInterference() <<"]:"; 
-    printSet(*LR);
-  }
+  if (DEBUG_RA)
+    std::cerr << "\nColoring LR [CallInt=" << LR->isCallInterference() <<"]:"
+              << *LR << "\n"; 
 
   if (LR->hasSuggestedColor()) {
     unsigned SugCol = LR->getSuggestedColor();
@@ -61,8 +60,8 @@
         std::cerr << "\n Couldn't alloc Sug col - LR volatile & calls interf";
       }
     } else if (DEBUG_RA) {                // can't allocate the suggested col
-      std::cerr << "\n  Could NOT allocate the suggested color (already used) ";
-      printSet(*LR); std::cerr << "\n";
+      std::cerr << "\n  Could NOT allocate the suggested color (already used) "
+                << *LR << "\n";
     }
   }
 
@@ -162,7 +161,7 @@
 #ifndef NDEBUG
   // Let's just make sure values of two different types have not been
   // coalesced into this LR.
-  for (ValueSet::const_iterator I=ccLR->begin(), E=ccLR->end(); I!=E; ++I) {
+  for (LiveRange::const_iterator I=ccLR->begin(), E=ccLR->end(); I!=E; ++I) {
     const Type* ccType = (*I)->getType();
     assert((ccReg == xcc && (isa<PointerType>(ccType)
                              || ccType == Type::LongTy)) ||
@@ -251,8 +250,8 @@
       LR->setColor(  LR->getSuggestedColor() );
       return;
     } else if (DEBUG_RA)  {                 // can't allocate the suggested col
-      std::cerr << " Could NOT allocate the suggested color for LR ";
-      printSet(*LR); std::cerr << "\n";
+      std::cerr << " Could NOT allocate the suggested color for LR " << *LR
+                << "\n";
     }
   }
 





More information about the llvm-commits mailing list