make selectnodeto set the nodeid to -1. This makes it more akin to

creating a new node then replacing uses.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-02-23 23:01:35 +00:00
parent 450986db96
commit 5857e0add8

View File

@ -4553,7 +4553,10 @@ SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
SDVTList VTs, const SDValue *Ops,
unsigned NumOps) {
return MorphNodeTo(N, ~MachineOpc, VTs, Ops, NumOps);
N = MorphNodeTo(N, ~MachineOpc, VTs, Ops, NumOps);
// Reset the NodeID to -1.
N->setNodeId(-1);
return N;
}
SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc,