[llvm] r319085 - [SelectionDAG] Add a debug message when vector_shuffle nodes are created.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 11:54:57 PST 2017


Author: ctopper
Date: Mon Nov 27 11:54:57 2017
New Revision: 319085

URL: http://llvm.org/viewvc/llvm-project?rev=319085&view=rev
Log:
[SelectionDAG] Add a debug message when vector_shuffle nodes are created.

We print a debug message when most nodes are created, but getVectorShuffle was missing.

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=319085&r1=319084&r2=319085&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Nov 27 11:54:57 2017
@@ -1638,7 +1638,9 @@ SDValue SelectionDAG::getVectorShuffle(E
 
   CSEMap.InsertNode(N, IP);
   InsertNode(N);
-  return SDValue(N, 0);
+  SDValue V = SDValue(N, 0);
+  NewSDValueDbgMsg(V, "Creating new node: ", this);
+  return V;
 }
 
 SDValue SelectionDAG::getCommutedVectorShuffle(const ShuffleVectorSDNode &SV) {




More information about the llvm-commits mailing list