[PATCH] D45913: [SelectionDAG] Dump debug locs in SDNodes
    Vedant Kumar via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Apr 20 18:16:29 PDT 2018
    
    
  
vsk created this revision.
vsk added reviewers: thegameg, craig.topper, bogner.
This helps debug issues where SelectionDAG assigns the wrong location
to an instruction.
https://reviews.llvm.org/D45913
Files:
  lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
Index: lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -834,4 +834,8 @@
     if (i) OS << ", "; else OS << " ";
     printOperand(OS, G, getOperand(i));
   }
+  if (DebugLoc DL = getDebugLoc()) {
+    OS << ", ";
+    DL.print(OS);
+  }
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45913.143422.patch
Type: text/x-patch
Size: 415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180421/a1fb0730/attachment.bin>
    
    
More information about the llvm-commits
mailing list