[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 3 18:33:04 PST 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.383 -> 1.384
---
Log message:
eliminate some extraneous methods in SDNode
---
Diffs of the changes: (+16 -5)
SelectionDAG.cpp | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.383 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.384
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.383 Sat Feb 3 20:23:32 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sat Feb 3 20:32:44 2007
@@ -2103,9 +2103,11 @@
return ON;
RemoveNodeFromCSEMaps(N);
+ SDOperand OperandList[] = { Op1 };
+
N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
N->setValueTypes(VTs);
- N->setOperands(Op1);
+ N->setOperands(OperandList, 1);
CSEMap.InsertNode(N, IP);
return N;
}
@@ -2122,9 +2124,12 @@
return ON;
RemoveNodeFromCSEMaps(N);
+
+ SDOperand OperandList[] = { Op1, Op2 };
+
N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
N->setValueTypes(VTs);
- N->setOperands(Op1, Op2);
+ N->setOperands(OperandList, 2);
CSEMap.InsertNode(N, IP); // Memoize the new node.
return N;
@@ -2142,9 +2147,11 @@
return ON;
RemoveNodeFromCSEMaps(N);
+
+ SDOperand OperandList[] = { Op1, Op2, Op3 };
N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
N->setValueTypes(VTs);
- N->setOperands(Op1, Op2, Op3);
+ N->setOperands(OperandList, 3);
CSEMap.InsertNode(N, IP); // Memoize the new node.
return N;
@@ -2181,9 +2188,11 @@
return ON;
RemoveNodeFromCSEMaps(N);
+
+ SDOperand OperandList[] = { Op1, Op2 };
N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
N->setValueTypes(VTs);
- N->setOperands(Op1, Op2);
+ N->setOperands(OperandList, 2);
CSEMap.InsertNode(N, IP); // Memoize the new node.
return N;
@@ -2202,9 +2211,11 @@
return ON;
RemoveNodeFromCSEMaps(N);
+
+ SDOperand OperandList[] = { Op1, Op2, Op3 };
N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
N->setValueTypes(VTs);
- N->setOperands(Op1, Op2, Op3);
+ N->setOperands(OperandList, 3);
CSEMap.InsertNode(N, IP); // Memoize the new node.
return N;
More information about the llvm-commits
mailing list