[all-commits] [llvm/llvm-project] 7a0b89: [DAGCombiner][SVE] Ensure MGATHER/MSCATTER address...

paulwalker-arm via All-commits all-commits at lists.llvm.org
Fri Apr 29 04:43:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a0b897e8664d11481230a69a88fca2b2ee5f904
      https://github.com/llvm/llvm-project/commit/7a0b897e8664d11481230a69a88fca2b2ee5f904
  Author: Paul Walker <paul.walker at arm.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

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

  Log Message:
  -----------
  [DAGCombiner][SVE] Ensure MGATHER/MSCATTER addressing mode combines preserve index scaling

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.

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




More information about the All-commits mailing list