[PATCH] D134472: [DAG] Move one-use add of splat to base of scatter/gather

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 13:03:05 PDT 2022


reames created this revision.
reames added reviewers: craig.topper, RKSimon, paulwalker-arm.
Herald added subscribers: StephenFan, frasercrmck, ecnelises, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, bollu, simoncook, johnrusso, rbar, asb, hiraditya, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: pcwang-thead, MaskRay.
Herald added a project: LLVM.

This extends the uniform base transform used with scatter/gather to support one-use vector adds-of-splats with a non-zero base.  This has the effect of essentially reassociating an add from vector to scalar domain.

The motivation is to improve the lowering of scatter/gather operations fed by complex geps.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134472

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/sve-gather-scatter-addr-opts.ll
  llvm/test/CodeGen/RISCV/rvv/mscatter-combine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134472.462273.patch
Type: text/x-patch
Size: 7677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/5133ec8d/attachment.bin>


More information about the llvm-commits mailing list