[PATCH] D102253: [LV] Prevent vectorization with unsupported element types.

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 9 07:12:01 PDT 2021


kmclaughlin updated this revision to Diff 350888.
kmclaughlin marked 2 inline comments as done.
kmclaughlin added a comment.

- Renamed `isLegalElementTypeForSVE` to `isElementTypeLegalForScalableVector`, but kept the implementation in AArch64TargetTransformInfo.h
- Renamed `isLegalToVectorizeInstTypesForScalable` to `canWidenLoopWithScalableVectors` and moved `canVectorizeReductions` into this function, similar to D102394 <https://reviews.llvm.org/D102394>


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102253/new/

https://reviews.llvm.org/D102253

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-reductions.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-illegal-type.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102253.350888.patch
Type: text/x-patch
Size: 11892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210609/003dbf55/attachment.bin>


More information about the llvm-commits mailing list