Skip to content

Commit bacd8ae

Browse files
committed
use SmallVector with initial value
1 parent dad00aa commit bacd8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@ bool VectorCombine::foldInsExtVectorToShuffle(Instruction &I) {
28002800
if (ExtIdx >= NumElts)
28012801
return false;
28022802

2803-
SmallVector<int> Mask(NumElts);
2803+
SmallVector<int> Mask(NumElts, 0);
28042804
std::iota(Mask.begin(), Mask.end(), 0);
28052805
Mask[InsIdx] = ExtIdx + NumElts;
28062806
// Cost

0 commit comments

Comments
 (0)