forked from OSchip/llvm-project
[DAGCombine] Fix cppcheck shadow variable warning. NFCI.
We already have an outer Ops variable. llvm-svn: 370197
This commit is contained in:
parent
f46ba4f077
commit
14e07d7f4b
|
@ -19552,14 +19552,14 @@ SDValue DAGCombiner::SimplifyVBinOp(SDNode *N) {
|
||||||
TLI.isOperationLegalOrCustomOrPromote(Opcode, NarrowVT)) {
|
TLI.isOperationLegalOrCustomOrPromote(Opcode, NarrowVT)) {
|
||||||
SDLoc DL(N);
|
SDLoc DL(N);
|
||||||
unsigned NumOperands = LHS.getNumOperands();
|
unsigned NumOperands = LHS.getNumOperands();
|
||||||
SmallVector<SDValue, 4> Ops;
|
SmallVector<SDValue, 4> ConcatOps;
|
||||||
for (unsigned i = 0; i != NumOperands; ++i) {
|
for (unsigned i = 0; i != NumOperands; ++i) {
|
||||||
// This constant fold for operands 1 and up.
|
// This constant fold for operands 1 and up.
|
||||||
Ops.push_back(DAG.getNode(Opcode, DL, NarrowVT, LHS.getOperand(i),
|
ConcatOps.push_back(DAG.getNode(Opcode, DL, NarrowVT, LHS.getOperand(i),
|
||||||
RHS.getOperand(i)));
|
RHS.getOperand(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, Ops);
|
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, ConcatOps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue