[PATCH] D93229: [VectorCombine] allow peeking through GEPs when creating a vector load
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 06:34:08 PST 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:197
SmallVector<int, 16> Mask(OutputNumElts, UndefMaskElem);
- Mask[0] = 0;
+ Mask[0] = OffsetInBits / ScalarSize;
VecLd = Builder.CreateShuffleVector(VecLd, Mask);
----------------
lebedev.ri wrote:
> Assert that the division is exact?
And also assert that `Mask[0] < MinVecNumElts`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93229/new/
https://reviews.llvm.org/D93229
More information about the llvm-commits
mailing list