[PATCH] D104217: [AArch64][SVE] Add support for fixed length MSCATTER/MGATHER

Bradley Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 14 04:39:34 PDT 2021


bsmith created this revision.
bsmith added reviewers: paulwalker-arm, peterwaller-arm, joechrisellis, david-arm.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
bsmith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Since gather lowering can now lower to nodes that may need expansion via
the vector legalizer, do MGATHER lowering via vector legalizer.

As part of this, add a dag combine to optimize a SETCC_MERGE_ZERO of a
SETCC_MERGE_ZERO. This helps remove extra comparisons when generating
masks for fixed length masked operations.

Additionally, as part of adding passthru support for fixed typed
gathers, fix passthru support for scalable types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104217

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
  llvm/test/CodeGen/AArch64/sve-fixed-length-masked-gather.ll
  llvm/test/CodeGen/AArch64/sve-fixed-length-masked-loads.ll
  llvm/test/CodeGen/AArch64/sve-fixed-length-masked-scatter.ll
  llvm/test/CodeGen/AArch64/sve-fixed-length-masked-stores.ll
  llvm/test/CodeGen/AArch64/sve-masked-gather.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104217.351829.patch
Type: text/x-patch
Size: 129817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210614/85729c3a/attachment-0001.bin>


More information about the llvm-commits mailing list