[PATCH] D108891: [LV] Fix crash for reverse interleaved loads with gap under fold-tail
Ayal Zaks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 29 09:13:09 PDT 2021
Ayal created this revision.
Ayal added reviewers: fhahn, uabelho.
Herald added a subscriber: hiraditya.
Ayal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch fixes the crash found by PR51614:
whenever doing tail folding, interleave groups must be considered under mask.
Another fix will follow for targets that support masked vector loads and stores:
when *deciding* to vectorize with masked interleave groups, check if the access
is reverse - which is currently not supported; rather than (only) asserting when
computing cost and generating code.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108891
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/pr51614-fold-tail-by-masking.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108891.369323.patch
Type: text/x-patch
Size: 7992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210829/b051fa56/attachment.bin>
More information about the llvm-commits
mailing list