[all-commits] [llvm/llvm-project] 491573: [RISCV] Add tests for loads and stores of illegal ...

Luke Lau via All-commits all-commits at lists.llvm.org
Thu Apr 6 09:40:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 491573d1444b1dfe695717a549ebb0636d40cdf4
      https://github.com/llvm/llvm-project/commit/491573d1444b1dfe695717a549ebb0636d40cdf4
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-load.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-store.ll

  Log Message:
  -----------
  [RISCV] Add tests for loads and stores of illegal fixed length vectors

I was investigating why getMemoryOpCost was so expensive for these fixed length vector types, so I've added these tests to see what was going on.
It looks like there's some room for codegen improvement before we adjust the cost model.

Reviewed By: craig.topper

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


  Commit: ce397e500d3572a0c3743630bf0a895c24baebad
      https://github.com/llvm/llvm-project/commit/ce397e500d3572a0c3743630bf0a895c24baebad
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-interleaved-access-zve32x.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-load.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-masked-scatter.ll
    M llvm/test/CodeGen/RISCV/rvv/fpclamptosat_vec.ll

  Log Message:
  -----------
  [RISCV] Lower scalar_to_vector

Loads of fixed length vectors with irregular element counts are
sometimes emitted as a scalar load + scalar_to_vector.
Previously the scalar_to_vector wasn't legal and so was scalarized
further. This patch handles it by lowering it to a vmv.s.x.

Reviewed By: craig.topper

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


Compare: https://github.com/llvm/llvm-project/compare/2caaec65c04e...ce397e500d35


More information about the All-commits mailing list