[PATCH] D120912: [AArch64][SVE] Convert gather/scatter with a stride of 2 to contiguous loads/stores

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 05:59:01 PST 2022


kmclaughlin updated this revision to Diff 414354.
kmclaughlin marked 7 inline comments as done.
kmclaughlin added a comment.

- Added the preferGatherScatter function to AArch64Subtarget, which checks if a gather/scatter with a given type & stride is preferable to contiguous loads/stores on the current target.
- Create new machine memory operands for the contiguous loads/stores instead of reusing the mem operand from the gather/scatter.
- Added tests for floating-point gathers & scatters, and extending & truncating gathers/scatters.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120912/new/

https://reviews.llvm.org/D120912

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64Subtarget.cpp
  llvm/lib/Target/AArch64/AArch64Subtarget.h
  llvm/test/CodeGen/AArch64/sve-gather-scatter-to-contiguous.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120912.414354.patch
Type: text/x-patch
Size: 19357 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220310/ea05d233/attachment.bin>


More information about the llvm-commits mailing list