[all-commits] [llvm/llvm-project] 78f1a2: [RISCV] Fix crash in lowerVECTOR_DEINTERLEAVE when...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jun 8 08:47:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78f1a2ae26ee4dbfc1f8d7ddab098f326691a95e
      https://github.com/llvm/llvm-project/commit/78f1a2ae26ee4dbfc1f8d7ddab098f326691a95e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-06-08 (Thu, 08 Jun 2023)

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

  Log Message:
  -----------
  [RISCV] Fix crash in lowerVECTOR_DEINTERLEAVE when VecVT is an LMUL=8 type.

If VecVT is an LMUL=8 VT, we can't concatenate the vectors as that
would create an illegal type. Instead we need to split the vectors
and emit two VECTOR_DEINTERLEAVE operations that can each be lowered.

Reviewed By: luke, rogfer01

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


  Commit: 167f2fa1b6df6feb9663fd083577b16eeea6299f
      https://github.com/llvm/llvm-project/commit/167f2fa1b6df6feb9663fd083577b16eeea6299f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-06-08 (Thu, 08 Jun 2023)

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

  Log Message:
  -----------
  [RISCV] Fix crash in lowerVECTOR_INTERLEAVE when VecVT is an LMUL=8 type.

If VecVT is an LMUL=8 VT, we can't concatenate the vectors as that
would create an illegal type. Instead we need to split the vectors
and emit two VECTOR_INTERLEAVE operations that can each be lowered.

Reviewed By: fakepaper56

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


Compare: https://github.com/llvm/llvm-project/compare/0f0623ab87e9...167f2fa1b6df


More information about the All-commits mailing list