[PATCH] D97465: [LoopVectorize] Refine hasIrregularType predicate
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 13:08:12 PDT 2021
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
Seems good to me.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:380-381
+ // This is only true if there is no padding between the array elements.
return DL.getTypeAllocSizeInBits(Ty) != DL.getTypeSizeInBits(Ty);
}
----------------
I wonder why can't we still vectorize such cases,
by instead loading `<N x DL.getTypeAllocSizeInBits(Ty)>` vector and then truncating it?
(beware of endianness)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97465/new/
https://reviews.llvm.org/D97465
More information about the llvm-commits
mailing list