[PATCH] D147331: [ARM] Increase the Scalarized cost of masked gather/scatter operations

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 31 07:51:40 PDT 2023


dmgreen created this revision.
dmgreen added reviewers: samtebbs, NickGuy.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

If a gather/scatter is masked and will need to be scalarized then the cost should be higher than we currently produce. An additional cost for scalarizing the mask, extracting i1s and branching on the result needs to be added, which I gave a cost of 5 in this patch.


https://reviews.llvm.org/D147331

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/ARM/mve-gather-scatter-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147331.510033.patch
Type: text/x-patch
Size: 23532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230331/7c2ba15e/attachment.bin>


More information about the llvm-commits mailing list