forked from OSchip/llvm-project
[SelectionDAG] Make getNode calls that take an ArrayRef of SDValue for operands call NewSDValueDbgMsg.
This makes it work better with some build_vector and concat_vectors creations. Adjust the NewSDValueDbgMsg in getConstant to avoid duplicating the print when it calls getSplatBuildVector since getSplatBuildVector didn't trigger a print before. llvm-svn: 320783
This commit is contained in:
parent
5ebf3ac9c2
commit
23951ec2cd
|
@ -1167,7 +1167,6 @@ SDValue SelectionDAG::getConstant(const ConstantInt &Val, const SDLoc &DL,
|
|||
Ops.insert(Ops.end(), EltParts.begin(), EltParts.end());
|
||||
|
||||
SDValue V = getNode(ISD::BITCAST, DL, VT, getBuildVector(ViaVecVT, DL, Ops));
|
||||
NewSDValueDbgMsg(V, "Creating constant: ", this);
|
||||
return V;
|
||||
}
|
||||
|
||||
|
@ -1188,13 +1187,13 @@ SDValue SelectionDAG::getConstant(const ConstantInt &Val, const SDLoc &DL,
|
|||
N = newSDNode<ConstantSDNode>(isT, isO, Elt, DL.getDebugLoc(), EltVT);
|
||||
CSEMap.InsertNode(N, IP);
|
||||
InsertNode(N);
|
||||
NewSDValueDbgMsg(SDValue(N, 0), "Creating constant: ", this);
|
||||
}
|
||||
|
||||
SDValue Result(N, 0);
|
||||
if (VT.isVector())
|
||||
Result = getSplatBuildVector(VT, DL, Result);
|
||||
|
||||
NewSDValueDbgMsg(Result, "Creating constant: ", this);
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
@ -6335,7 +6334,9 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
|
|||
}
|
||||
|
||||
InsertNode(N);
|
||||
return SDValue(N, 0);
|
||||
SDValue V(N, 0);
|
||||
NewSDValueDbgMsg(V, "Creating new node: ", this);
|
||||
return V;
|
||||
}
|
||||
|
||||
SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL,
|
||||
|
@ -6388,7 +6389,9 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, SDVTList VTList,
|
|||
createOperands(N, Ops);
|
||||
}
|
||||
InsertNode(N);
|
||||
return SDValue(N, 0);
|
||||
SDValue V(N, 0);
|
||||
NewSDValueDbgMsg(V, "Creating new node: ", this);
|
||||
return V;
|
||||
}
|
||||
|
||||
SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL,
|
||||
|
|
Loading…
Reference in New Issue