projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify some getNode calls.
[oota-llvm.git]
/
lib
/
CodeGen
/
SelectionDAG
/
DAGCombiner.cpp
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 9db987936377eefe8ad48140177343adfe9559c4..817b62588dbeddb76cbd21ab15e1710a89d7cc23 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-1058,8
+1058,7
@@
SDOperand DAGCombiner::visitADDC(SDNode *N) {
// canonicalize constant to RHS.
if (N0C && !N1C) {
// 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
}
// fold (addc x, 0) -> x + no carry out
@@
-1095,14
+1094,12
@@
SDOperand DAGCombiner::visitADDE(SDNode *N) {
// canonicalize constant to RHS
if (N0C && !N1C) {
// 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) {
}
// 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();
}
return SDOperand();