[all-commits] [llvm/llvm-project] b9c473: [DAG] Move one-use add of splat to base of scatter...

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Sep 22 18:46:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9c473307954e62f5f756aa7af315d0ffe707634
      https://github.com/llvm/llvm-project/commit/b9c473307954e62f5f756aa7af315d0ffe707634
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-09-22 (Thu, 22 Sep 2022)

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

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

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.

Differential Revision: https://reviews.llvm.org/D134472




More information about the All-commits mailing list