[PATCH] D101839: [RISCV] Cap legal fixed-length vectors 256-element types

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 4 08:15:49 PDT 2021


frasercrmck created this revision.
frasercrmck added reviewers: craig.topper, rogfer01, evandro, HsiangKai.
Herald added subscribers: vkmr, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
frasercrmck requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101839

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101839.342748.patch
Type: text/x-patch
Size: 93524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210504/d015f943/attachment-0001.bin>


More information about the llvm-commits mailing list