[llvm] r251884 - RegisterPressure: Slightly nicer pressure diff dumping

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 17:53:33 PST 2015


Author: matze
Date: Mon Nov  2 19:53:33 2015
New Revision: 251884

URL: http://llvm.org/viewvc/llvm-project?rev=251884&view=rev
Log:
RegisterPressure: Slightly nicer pressure diff dumping

Modified:
    llvm/trunk/lib/CodeGen/RegisterPressure.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterPressure.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterPressure.cpp?rev=251884&r1=251883&r2=251884&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterPressure.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterPressure.cpp Mon Nov  2 19:53:33 2015
@@ -78,11 +78,13 @@ void RegPressureTracker::dump() const {
 }
 
 void PressureDiff::dump(const TargetRegisterInfo &TRI) const {
+  const char *sep = "";
   for (const PressureChange &Change : *this) {
     if (!Change.isValid())
       break;
-    dbgs() << "    " << TRI.getRegPressureSetName(Change.getPSet())
+    dbgs() << sep << TRI.getRegPressureSetName(Change.getPSet())
            << " " << Change.getUnitInc();
+    sep = "    ";
   }
   dbgs() << '\n';
 }




More information about the llvm-commits mailing list