[all-commits] [llvm/llvm-project] 2da8ed: [RISCV] Add tests for gather scatter pass for non-...

Luke Lau via All-commits all-commits at lists.llvm.org
Mon Mar 27 12:22:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2da8ed3d78bb4c4ba5548ae5b386f545ab2cc8b5
      https://github.com/llvm/llvm-project/commit/2da8ed3d78bb4c4ba5548ae5b386f545ab2cc8b5
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M llvm/test/CodeGen/RISCV/rvv/strided-load-store.ll

  Log Message:
  -----------
  [RISCV] Add tests for gather scatter pass for non-recursive mul strides

Reviewed By: craig.topper

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


  Commit: d49f2c6d40da986c09262c3e1a421a4cb7983c4b
      https://github.com/llvm/llvm-project/commit/d49f2c6d40da986c09262c3e1a421a4cb7983c4b
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/strided-load-store.ll

  Log Message:
  -----------
  [RISCV] Handle non-recursive muls of strides in gather/scatter lowering

The gather scatter lowering pass can fold multiplies of a step vector
into the stride for the recursive case, so this extends it for the
non-recursive case.
The logic can probably be shared between the two at some point to extend
it to shls and ors.

Reviewed By: reames

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


Compare: https://github.com/llvm/llvm-project/compare/98af824531a0...d49f2c6d40da


More information about the All-commits mailing list