[llvm-commits] [llvm] r97000 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 23 15:01:35 PST 2010
Author: lattner
Date: Tue Feb 23 17:01:35 2010
New Revision: 97000
URL: http://llvm.org/viewvc/llvm-project?rev=97000&view=rev
Log:
make selectnodeto set the nodeid to -1. This makes it more akin to
creating a new node then replacing uses.
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=97000&r1=96999&r2=97000&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Feb 23 17:01:35 2010
@@ -4553,7 +4553,10 @@
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,
More information about the llvm-commits
mailing list