projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ee93b
)
Use a range insert instead of an explicit loop.
author
Dan Gohman
<gohman@apple.com>
Fri, 31 Jul 2009 23:36:06 +0000
(23:36 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 31 Jul 2009 23:36:06 +0000
(23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77752
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
index c80b34db9901fedf6779aca93d78cba15f74ac61..82d98a72d5bc95f0ee723d29461a80b6db4927bd 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
@@
-480,8
+480,7
@@
SDNode *DAGTypeLegalizer::AnalyzeNewNode(SDNode *N) {
NewOps.push_back(Op);
} else if (Op != OrigOp) {
// This is the first operand to change - add all operands so far.
- for (unsigned j = 0; j < i; ++j)
- NewOps.push_back(N->getOperand(j));
+ NewOps.insert(NewOps.end(), N->op_begin(), N->op_begin() + i);
NewOps.push_back(Op);
}
}