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 987f524 commit 1c02a71Copy full SHA for 1c02a71
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -2698,7 +2698,7 @@ bool VectorCombine::foldInsExtVectorToShuffle(Instruction &I) {
2698
if (ExtIdx >= NumElts)
2699
return false;
2700
2701
- SmallVector<int> Mask(NumElts);
+ SmallVector<int> Mask(NumElts, 0);
2702
std::iota(Mask.begin(), Mask.end(), 0);
2703
Mask[InsIdx] = ExtIdx + NumElts;
2704
// Cost
0 commit comments