[all-commits] [llvm/llvm-project] cd6a52: [RISCV] Cap legal fixed-length vectors to 256-elem...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Wed May 5 01:59:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd6a52fedefe263565b81fbee9d5d3278e1e63cb
      https://github.com/llvm/llvm-project/commit/cd6a52fedefe263565b81fbee9d5d3278e1e63cb
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/interleave-crash.ll

  Log Message:
  -----------
  [RISCV] Cap legal fixed-length vectors to 256-element types

Previously, RISC-V would make legal all fixed-length vectors types whose
size are less than or equal to some function of the minimum value of
VLEN and the maximum-permissible LMUL grouping.

Due to vector legalization issues, this patch instead caps the legal
fixed-length vector types to those with 256 elements. This value was
chosen because it is the longest vector length which has corresponding
MVTs across all supported element types.

Reviewed By: craig.topper

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




More information about the All-commits mailing list