[PATCH] D85410: [ARM][MVE] Allow loops containing strides != 1 to be tail predicated with gather/scatters enabled

Anna Welker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 01:27:42 PDT 2020


anwel created this revision.
anwel added reviewers: dmgreen, SjoerdMeijer, samparker.
anwel added a project: LLVM.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
anwel requested review of this revision.

There is a stride check in ARMTargetTransformInfo that decides whether a loop cannot be tail predicated by checking whether the strides in it are different from 1. To enable tail predication for loops containing gather/scatters, this patch takes a more detailed approach if the EnableMaskedGatherScatters flag is true, and also adds some more detailed debug messages.


https://reviews.llvm.org/D85410

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/Transforms/LoopVectorize/ARM/mve-gather-scatter-tailpred.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85410.283523.patch
Type: text/x-patch
Size: 12967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/46d3b5f6/attachment.bin>


More information about the llvm-commits mailing list