[PATCH] D65612: Handle casts changing pointer size in the vectorizer
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 16:27:06 PDT 2019
tra added inline comments.
================
Comment at: lib/Transforms/Vectorize/LoadStoreVectorizer.cpp:351-366
+ if (NewPtrBitWidth > PtrBitWidth) {
+ OffsetA = OffsetA.sext(NewPtrBitWidth);
+ OffsetB = OffsetB.sext(NewPtrBitWidth);
+ PtrDelta = PtrDelta.sext(NewPtrBitWidth);
+ } else if (NewPtrBitWidth < PtrBitWidth) {
+ // In case if we have to shrink the pointer
+ // stripAndAccumulateInBoundsConstantOffsets should properly handle a
----------------
This can probably be collapsed to `OffsetA = OffsetA.sextOrTrunk(NewPtrBitWidth);`
same for OffsetB & PtrDelta.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65612/new/
https://reviews.llvm.org/D65612
More information about the llvm-commits
mailing list