[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 11 10:22:49 PDT 2006
Changes in directory llvm/lib/Target/ARM:
ARMISelDAGToDAG.cpp updated: 1.26 -> 1.27
---
Log message:
elimiante use of getNode that takes vector of operands.
---
Diffs of the changes: (+4 -3)
ARMISelDAGToDAG.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.26 llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.27
--- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.26 Fri Aug 11 04:06:36 2006
+++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp Fri Aug 11 12:22:35 2006
@@ -157,7 +157,7 @@
unsigned CallOpc = ARMISD::CALL;
if (InFlag.Val)
Ops.push_back(InFlag);
- Chain = DAG.getNode(CallOpc, NodeTys, Ops);
+ Chain = DAG.getNode(CallOpc, NodeTys, &Ops[0], Ops.size());
InFlag = Chain.getValue(1);
std::vector<SDOperand> ResultVals;
@@ -182,7 +182,8 @@
return Chain;
ResultVals.push_back(Chain);
- SDOperand Res = DAG.getNode(ISD::MERGE_VALUES, NodeTys, ResultVals);
+ SDOperand Res = DAG.getNode(ISD::MERGE_VALUES, NodeTys, &ResultVals[0],
+ ResultVals.size());
return Res.getValue(Op.ResNo);
}
@@ -279,7 +280,7 @@
// Return the new list of results.
std::vector<MVT::ValueType> RetVT(Op.Val->value_begin(),
Op.Val->value_end());
- return DAG.getNode(ISD::MERGE_VALUES, RetVT, ArgValues);
+ return DAG.getNode(ISD::MERGE_VALUES, RetVT, &ArgValues[0], ArgValues.size());
}
SDOperand ARMTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
More information about the llvm-commits
mailing list