OSDN Git Service

[SelectionDAG] Add a debug message when vector_shuffle nodes are created.
authorCraig Topper <craig.topper@intel.com>
Mon, 27 Nov 2017 19:54:57 +0000 (19:54 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 27 Nov 2017 19:54:57 +0000 (19:54 +0000)
We print a debug message when most nodes are created, but getVectorShuffle was missing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319085 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 805732c..22e7885 100644 (file)
@@ -1638,7 +1638,9 @@ SDValue SelectionDAG::getVectorShuffle(EVT VT, const SDLoc &dl, SDValue N1,
 
   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) {