mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 07:40:58 +00:00
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:
parent
35ee93b791
commit
2d147c4401
@ -480,8 +480,7 @@ SDNode *DAGTypeLegalizer::AnalyzeNewNode(SDNode *N) {
|
|||||||
NewOps.push_back(Op);
|
NewOps.push_back(Op);
|
||||||
} else if (Op != OrigOp) {
|
} else if (Op != OrigOp) {
|
||||||
// This is the first operand to change - add all operands so far.
|
// This is the first operand to change - add all operands so far.
|
||||||
for (unsigned j = 0; j < i; ++j)
|
NewOps.insert(NewOps.end(), N->op_begin(), N->op_begin() + i);
|
||||||
NewOps.push_back(N->getOperand(j));
|
|
||||||
NewOps.push_back(Op);
|
NewOps.push_back(Op);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user