[PATCH] D130755: [LoopVectorize] Introduce trip count minimal value threshold to ignore tail-folding for scalable vectors

Dinar Temirbulatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 29 03:38:31 PDT 2022


dtemirbulatov created this revision.
dtemirbulatov added reviewers: david-arm, paulwalker-arm, peterwaller-arm, sdesmalen.
Herald added subscribers: shiva0217, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
dtemirbulatov requested review of this revision.
Herald added subscribers: alextsao1999, pcwang-thead, MaskRay.
Herald added a project: LLVM.

After D121595 <https://reviews.llvm.org/D121595> was commited, I noticed regressions assosicated with small trip count numbers vectorization by tail folding with scalable vectors. As a solution for those issues I propose to introduce the minimal trip count threshold value.


https://reviews.llvm.org/D130755

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/sve-low-trip-count.ll
  llvm/test/Transforms/LoopVectorize/RISCV/low-trip-count.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130755.448571.patch
Type: text/x-patch
Size: 10431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220729/a3d6e20a/attachment.bin>


More information about the llvm-commits mailing list