[PATCH] D137966: [AArch64] Lower fixed-length vector_shuffle to SVE splat if possible

Benjamin Maxwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 10:17:42 PST 2022


benmxwl-arm created this revision.
benmxwl-arm added reviewers: c-rhodes, peterwaller-arm, dtemirbulatov, MattDevereau.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls, tschuett.
Herald added a project: All.
benmxwl-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This adds an extra case to check if a vector_shuffle for a fixed-length
vector that's being lowered to SVE, is just a splat. Doing this avoids
a round trip to the stack and back for a few cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137966

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-fixed-length-shuffles.ll
  llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-extract-subvector.ll
  llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-shuffle.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137966.475201.patch
Type: text/x-patch
Size: 5263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221114/6a246251/attachment.bin>


More information about the llvm-commits mailing list