We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aca710a commit 81b4fc2Copy full SHA for 81b4fc2
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -24747,10 +24747,8 @@ static SDValue combineConcatVectorOfShuffleAndItsOperands(
24747
24748
// We are going to pad the shuffle operands, so any indice, that was picking
24749
// from the second operand, must be adjusted.
24750
- SmallVector<int, 16> AdjustedMask;
24751
- AdjustedMask.reserve(SVN->getMask().size());
+ SmallVector<int, 16> AdjustedMask(SVN->getMask());
24752
assert(SVN->getOperand(1).isUndef() && "Expected unary shuffle!");
24753
- append_range(AdjustedMask, SVN->getMask());
24754
24755
// Identity masks for the operands of the (padded) shuffle.
24756
SmallVector<int, 32> IdentityMask(2 * OpVT.getVectorNumElements());
0 commit comments