[all-commits] [llvm/llvm-project] 37cf4f: [RISCV] Consolidate legality checking for strided ...

Philip Reames via All-commits all-commits at lists.llvm.org
Fri Apr 28 08:13:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37cf4fc6cef9f2f50e15622a1bdecc89ea6ddd23
      https://github.com/llvm/llvm-project/commit/37cf4fc6cef9f2f50e15622a1bdecc89ea6ddd23
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h

  Log Message:
  -----------
  [RISCV] Consolidate legality checking for strided load/store [nfc]

Note that the strided load from concat_vector combine was using the wrong legality test. It happened to work out as the alignment requirement is based on the scalar type either way, but unless I'm missing something allowsMisalignedAccess is expecting a contiguous memory access.

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




More information about the All-commits mailing list