Use a range insert instead of an explicit loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-07-31 23:36:06 +00:00
parent 35ee93b791
commit 2d147c4401

View File

@ -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);
}
}