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

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 5 09:45:02 PDT 2021


kmclaughlin updated this revision to Diff 356517.
kmclaughlin marked 5 inline comments as done.
kmclaughlin edited the summary of this revision.
kmclaughlin added a comment.

Addressing new review comments from @david-arm & @sdesmalen:

- Removed the `canWidenLoopWithScalableVectors` function, moving the condition to disable scalable vectorization of loops with illegal types into `getMaxLegalScalableVF` instead.
- Removed the changes to add `getSmallestAndWidestTypes` and the `ElementTypesInLoop` list from this patch.
- Improved the CHECK lines in sve-illegal-type.ll.


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.356517.patch
Type: text/x-patch
Size: 12629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210705/d3900aa7/attachment.bin>


More information about the llvm-commits mailing list