[all-commits] [llvm/llvm-project] df2e72: [RISCV] Teach RISCVGatherScatterLowering to handle...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Jan 4 10:13:53 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df2e728b77510da33cf3822eae4d66531eeed518
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

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

  Log Message:
  [RISCV] Teach RISCVGatherScatterLowering to handle more complex recurrence start values.

Previously we only recognized strided loads/store when the initial
value for the phi was a strided constant vector.

This patch extends the support to a strided_constant added to a
splatted value. The rewritten loop will add the splat value to the
first element of the strided constant vector to use as the scalar
start value. The stride is unaffected.

Reviewed By: frasercrmck

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

More information about the All-commits mailing list