[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 3 18:42:00 PST 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.384 -> 1.385
---
Log message:
simplify MorphNodeTo to take a VTList operand.
---
Diffs of the changes: (+13 -14)
SelectionDAG.cpp | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.384 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.385
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.384 Sat Feb 3 20:32:44 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sat Feb 3 20:41:42 2007
@@ -2085,8 +2085,7 @@
RemoveNodeFromCSEMaps(N);
- N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
- N->setValueTypes(VTs);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc, VTs);
CSEMap.InsertNode(N, IP);
return N;
@@ -2105,8 +2104,7 @@
RemoveNodeFromCSEMaps(N);
SDOperand OperandList[] = { Op1 };
- N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
- N->setValueTypes(VTs);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc, VTs);
N->setOperands(OperandList, 1);
CSEMap.InsertNode(N, IP);
return N;
@@ -2127,8 +2125,7 @@
SDOperand OperandList[] = { Op1, Op2 };
- N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
- N->setValueTypes(VTs);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc, VTs);
N->setOperands(OperandList, 2);
CSEMap.InsertNode(N, IP); // Memoize the new node.
@@ -2149,8 +2146,7 @@
RemoveNodeFromCSEMaps(N);
SDOperand OperandList[] = { Op1, Op2, Op3 };
- N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
- N->setValueTypes(VTs);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc, VTs);
N->setOperands(OperandList, 3);
CSEMap.InsertNode(N, IP); // Memoize the new node.
@@ -2169,8 +2165,7 @@
return ON;
RemoveNodeFromCSEMaps(N);
- N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
- N->setValueTypes(VTs);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc, VTs);
N->setOperands(Ops, NumOps);
CSEMap.InsertNode(N, IP); // Memoize the new node.
@@ -2190,8 +2185,7 @@
RemoveNodeFromCSEMaps(N);
SDOperand OperandList[] = { Op1, Op2 };
- N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
- N->setValueTypes(VTs);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc, VTs);
N->setOperands(OperandList, 2);
CSEMap.InsertNode(N, IP); // Memoize the new node.
@@ -2213,8 +2207,7 @@
RemoveNodeFromCSEMaps(N);
SDOperand OperandList[] = { Op1, Op2, Op3 };
- N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
- N->setValueTypes(VTs);
+ N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc, VTs);
N->setOperands(OperandList, 3);
CSEMap.InsertNode(N, IP); // Memoize the new node.
@@ -2547,6 +2540,12 @@
void LoadSDNode::ANCHOR() {}
void StoreSDNode::ANCHOR() {}
+HandleSDNode::~HandleSDNode() {
+ SDVTList VTs = { 0, 0 };
+ MorphNodeTo(ISD::HANDLENODE, VTs); // Drops operand uses.
+}
+
+
/// Profile - Gather unique data for the node.
///
void SDNode::Profile(FoldingSetNodeID &ID) {
More information about the llvm-commits
mailing list