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 9336465 commit 60c4bb1Copy full SHA for 60c4bb1
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -2695,7 +2695,7 @@ bool VectorCombine::foldInsExtVectorToShuffle(Instruction &I) {
2695
return false;
2696
2697
unsigned NumElts = VecTy->getNumElements();
2698
- if (ExtIdx >= NumElts)
+ if (ExtIdx >= NumElts || InsIdx >= NumElts)
2699
2700
2701
SmallVector<int> Mask(NumElts, 0);
0 commit comments