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 bacd8ae commit 04af5c4Copy full SHA for 04af5c4
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -2797,7 +2797,7 @@ bool VectorCombine::foldInsExtVectorToShuffle(Instruction &I) {
2797
return false;
2798
2799
unsigned NumElts = VecTy->getNumElements();
2800
- if (ExtIdx >= NumElts)
+ if (ExtIdx >= NumElts || InsIdx >= NumElts)
2801
2802
2803
SmallVector<int> Mask(NumElts, 0);
0 commit comments