We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11857be commit bc19e50Copy full SHA for bc19e50
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -24741,10 +24741,8 @@ static SDValue combineConcatVectorOfShuffleAndItsOperands(
24741
24742
// We are going to pad the shuffle operands, so any indice, that was picking
24743
// from the second operand, must be adjusted.
24744
- SmallVector<int, 16> AdjustedMask;
24745
- AdjustedMask.reserve(SVN->getMask().size());
+ SmallVector<int, 16> AdjustedMask(SVN->getMask());
24746
assert(SVN->getOperand(1).isUndef() && "Expected unary shuffle!");
24747
- append_range(AdjustedMask, SVN->getMask());
24748
24749
// Identity masks for the operands of the (padded) shuffle.
24750
SmallVector<int, 32> IdentityMask(2 * OpVT.getVectorNumElements());
0 commit comments