Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24741,10 +24741,8 @@ static SDValue combineConcatVectorOfShuffleAndItsOperands(

// We are going to pad the shuffle operands, so any indice, that was picking
// from the second operand, must be adjusted.
SmallVector<int, 16> AdjustedMask;
AdjustedMask.reserve(SVN->getMask().size());
SmallVector<int, 16> AdjustedMask(SVN->getMask());
assert(SVN->getOperand(1).isUndef() && "Expected unary shuffle!");
append_range(AdjustedMask, SVN->getMask());

// Identity masks for the operands of the (padded) shuffle.
SmallVector<int, 32> IdentityMask(2 * OpVT.getVectorNumElements());
Expand Down
Loading