Skip to content

Commit 9336465

Browse files
committed
use SmallVector with initial value
1 parent ed03d11 commit 9336465

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
@@ -2698,7 +2698,7 @@ bool VectorCombine::foldInsExtVectorToShuffle(Instruction &I) {
26982698
if (ExtIdx >= NumElts)
26992699
return false;
27002700

2701-
SmallVector<int> Mask(NumElts);
2701+
SmallVector<int> Mask(NumElts, 0);
27022702
std::iota(Mask.begin(), Mask.end(), 0);
27032703
Mask[InsIdx] = ExtIdx + NumElts;
27042704
// Cost

0 commit comments

Comments
 (0)