Implement RAGreedy::splitAroundRegion and remove loop splitting.
[oota-llvm.git] / lib / CodeGen / LiveInterval.cpp
index c6a014951636ce0884110c2ef11c5f26a5c0bf2e..c2dbd6ab75a1aba7b638d01e198c7ee0214d2222 100644 (file)
@@ -650,7 +650,9 @@ void LiveRange::dump() const {
 }
 
 void LiveInterval::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const {
-  OS << PrintReg(reg, TRI) << ',' << weight;
+  OS << PrintReg(reg, TRI);
+  if (weight != 0)
+    OS << ',' << weight;
 
   if (empty())
     OS << " EMPTY";