[llvm] r281980 - Improve the -debug output for Debug Range Extension (NFC)

Keith Walker via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 09:04:32 PDT 2016


Author: kwalker
Date: Tue Sep 20 11:04:31 2016
New Revision: 281980

URL: http://llvm.org/viewvc/llvm-project?rev=281980&view=rev
Log:
Improve the -debug output for Debug Range Extension (NFC)

Include header messages and remove unnecessary blank lines.

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

Modified: llvm/trunk/lib/CodeGen/LiveDebugValues.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveDebugValues.cpp?rev=281980&r1=281979&r2=281980&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveDebugValues.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveDebugValues.cpp Tue Sep 20 11:04:31 2016
@@ -260,6 +260,7 @@ void LiveDebugValues::printVarLocInMBB(c
                                        const VarLocMap &VarLocIDs,
                                        const char *msg,
                                        raw_ostream &Out) const {
+  Out << '\n' << msg << '\n';
   for (const MachineBasicBlock &BB : MF) {
     const auto &L = V.lookup(&BB);
     Out << "MBB: " << BB.getName() << ":\n";
@@ -268,7 +269,6 @@ void LiveDebugValues::printVarLocInMBB(c
       Out << " Var: " << VL.Var.getVar()->getName();
       Out << " MI: ";
       VL.dump();
-      Out << "\n";
     }
   }
   Out << "\n";
@@ -468,6 +468,7 @@ bool LiveDebugValues::ExtendRanges(Machi
     // thing twice.  We could avoid this with a custom priority queue, but this
     // is probably not worth it.
     SmallPtrSet<MachineBasicBlock *, 16> OnPending;
+    DEBUG(dbgs() << "Processing Worklist\n");
     while (!Worklist.empty()) {
       MachineBasicBlock *MBB = OrderToBB[Worklist.top()];
       Worklist.pop();




More information about the llvm-commits mailing list