[all-commits] [llvm/llvm-project] 8e7cef: [RISCV] Fix crash when inserting large fixed-lengt...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu Mar 4 01:33:53 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e7ceffd0b78b17e92fb9e8b3fda6aa6e122eb87
      https://github.com/llvm/llvm-project/commit/8e7ceffd0b78b17e92fb9e8b3fda6aa6e122eb87
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-03-04 (Thu, 04 Mar 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-splat-rv32.ll

  Log Message:
  -----------
  [RISCV] Fix crash when inserting large fixed-length subvectors

This patch addresses a compiler crash resulting from passing a
fixed-length type to one that expects scalable vector types. An
assertion was added to prevent this regressing in the future.

Reviewed By: craig.topper

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




More information about the All-commits mailing list