From: Craig Topper Date: Mon, 27 Nov 2017 19:54:57 +0000 (+0000) Subject: [SelectionDAG] Add a debug message when vector_shuffle nodes are created. X-Git-Tag: android-x86-7.1-r4~8122 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f8061938e0257d700ee1accb7b8465fa7aec6889;p=android-x86%2Fexternal-llvm.git [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319085 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 805732c5b83..22e7885d005 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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) {