[all-commits] [llvm/llvm-project] 13a74d: [RISCV] Fix crash when legalizing mgather/scatter ...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Sep 18 08:37:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13a74d6cc862db4fd5df46bf3724fc917e321aa6
      https://github.com/llvm/llvm-project/commit/13a74d6cc862db4fd5df46bf3724fc917e321aa6
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

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

  Log Message:
  -----------
  [RISCV] Fix crash when legalizing mgather/scatter on rv32

This is a fix for a subset of legalization problems around 64 bit indices on
rv32 targets.  For RV32+V, we were using the wrong mask type for the manual
truncation lowering for fixed length vectors.  Instead, just use the generic
TRUNCATE node, and let it be lowered as needed.

Note that legalization is still broken for rv32+zve32.  That appears to be
a different issue.




More information about the All-commits mailing list