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; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits