Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.272 -> 1.273 --- Log message: generalize --- Diffs of the changes: (+9 -5) DAGCombiner.cpp | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.272 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.273 --- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.272 Sun Mar 4 14:03:15 2007 +++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sun Mar 4 14:08:45 2007 @@ -757,8 +757,10 @@ SDOperand(N, 1)); // canonicalize constant to RHS. - if (N0C && !N1C) - return DAG.getNode(ISD::ADDC, VT, N1, N0); + if (N0C && !N1C) { + SDOperand Ops[] = { N1, N0 }; + return DAG.getNode(ISD::ADDC, N->getVTList(), Ops, 2); + } // fold (add x, 0) -> x + no carry out //if (N1C && N1C->isNullValue()) @@ -772,11 +774,13 @@ SDOperand N1 = N->getOperand(1); ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0); ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); - MVT::ValueType VT = N0.getValueType(); + //MVT::ValueType VT = N0.getValueType(); // canonicalize constant to RHS - if (N0C && !N1C) - return DAG.getNode(ISD::ADDE, VT, N1, N0, N->getOperand(2)); + if (N0C && !N1C) { + SDOperand Ops[] = { N1, N0, N->getOperand(2) }; + return DAG.getNode(ISD::ADDE, N->getVTList(), Ops, 3); + } // fold (add x, 0) -> x //if (N1C && N1C->isNullValue()) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits