summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-21 22:06:07 +0000
committerDan Gohman <gohman@apple.com>2008-06-21 22:06:07 +0000
commit546505e7e17149d5ffaf129eec9bb0bf458bb118 (patch)
tree42cd655fd6ba01cb9d0d4b23d093d679d1d64d82 /llvm/lib/CodeGen/SelectionDAG
parentea0452016e2d22e6c93a361c318942c198654013 (diff)
downloadbcm5719-llvm-546505e7e17149d5ffaf129eec9bb0bf458bb118.tar.gz
bcm5719-llvm-546505e7e17149d5ffaf129eec9bb0bf458bb118.zip
Simplify some getNode calls.
llvm-svn: 52604
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 9db98793637..817b62588db 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1058,8 +1058,7 @@ SDOperand DAGCombiner::visitADDC(SDNode *N) {
// canonicalize constant to RHS.
if (N0C && !N1C) {
- SDOperand Ops[] = { N1, N0 };
- return DAG.getNode(ISD::ADDC, N->getVTList(), Ops, 2);
+ return DAG.getNode(ISD::ADDC, N->getVTList(), N1, N0);
}
// fold (addc x, 0) -> x + no carry out
@@ -1095,14 +1094,12 @@ SDOperand DAGCombiner::visitADDE(SDNode *N) {
// canonicalize constant to RHS
if (N0C && !N1C) {
- SDOperand Ops[] = { N1, N0, CarryIn };
- return DAG.getNode(ISD::ADDE, N->getVTList(), Ops, 3);
+ return DAG.getNode(ISD::ADDE, N->getVTList(), N1, N0, CarryIn);
}
// fold (adde x, y, false) -> (addc x, y)
if (CarryIn.getOpcode() == ISD::CARRY_FALSE) {
- SDOperand Ops[] = { N1, N0 };
- return DAG.getNode(ISD::ADDC, N->getVTList(), Ops, 2);
+ return DAG.getNode(ISD::ADDC, N->getVTList(), N1, N0);
}
return SDOperand();
OpenPOWER on IntegriCloud