[all-commits] [llvm/llvm-project] 6e7c54: [RISCV] Add lowering for scalable @llvm.riscv.mask...

Philip Reames via All-commits all-commits at lists.llvm.org
Sat Sep 24 17:42:19 PDT 2022


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

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

  Log Message:
  -----------
  [RISCV] Add lowering for scalable @llvm.riscv.masked.strided.load/store

The code previously assumed fixed length vectors; make the relevant code conditional.

Having the lowering in place is neccessary for an upcoming change to generalize scatter/gather matching to scalable vectors.

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


  Commit: 5358968e131cc486f236b0a5593d2201a609cdc1
      https://github.com/llvm/llvm-project/commit/5358968e131cc486f236b0a5593d2201a609cdc1
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-09-24 (Sat, 24 Sep 2022)

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

  Log Message:
  -----------
  [RISCV] Pattern match scalable strided load/store

Very straight forward extension of the existing pattern matching pass to handle scalable types as well as fixed length types. The only extra bit beyond removing a bailout is recognizing stepvector.

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


Compare: https://github.com/llvm/llvm-project/compare/2b187effbd65...5358968e131c


More information about the All-commits mailing list