[all-commits] [llvm/llvm-project] 57bc7b: [RISCV] Prevent crashes when bitcasting between fi...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Nov 10 09:22:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57bc7b108937d325187e5672daf63f2a31a89912
      https://github.com/llvm/llvm-project/commit/57bc7b108937d325187e5672daf63f2a31a89912
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-bitcast.ll

  Log Message:
  -----------
  [RISCV] Prevent crashes when bitcasting between fixed vectors and scalars.

Not all scalar element types are allowed in vectors so we may not
be able to bitcast to a 1 element vector to use insert/extract.

This will become a bigger issue when the Zve extensions are commited.
For now, I'm using the ELEN limit to limit the element types.

Reviewed By: frasercrmck

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




More information about the All-commits mailing list