[PATCH] D123222: [DAGCombiner][SVE] Ensure MGATHER/MSCATTER addressing mode combines preserve index scaling

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 08:12:15 PDT 2022


paulwalker-arm created this revision.
Herald added subscribers: ecnelises, psnobl, arphaman, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
paulwalker-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

refineUniformBase and selectGatherScatterAddrMode both attempt the
transformation:

  base(0) + index(A+splat(B)) => base(B) + index(A)

However, this is only safe when index is not implicitly scaled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123222

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-gather-scatter-addr-opts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123222.420871.patch
Type: text/x-patch
Size: 7072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/d87da1a0/attachment.bin>


More information about the llvm-commits mailing list