[all-commits] [llvm/llvm-project] b4729f: [RISCV] Use LMUL=1 for vmv_s_x_vl with non-undef p...

Luke Lau via All-commits all-commits at lists.llvm.org
Fri Oct 20 11:19:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4729f79ed9b476c214726ee1f969531f81cccbe
      https://github.com/llvm/llvm-project/commit/b4729f79ed9b476c214726ee1f969531f81cccbe
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-10-20 (Fri, 20 Oct 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/vmv.s.x-rv32.ll
    M llvm/test/CodeGen/RISCV/rvv/vmv.s.x-rv64.ll

  Log Message:
  -----------
  [RISCV] Use LMUL=1 for vmv_s_x_vl with non-undef passthru (#66659)

We currently shrink the type of vmv_s_x_vl to LMUL=1 when its passthru
is
undef to avoid constraining the register allocator since it ignores
LMUL.
This patch relaxes it for non-undef passthrus, which occurs when
lowering
insert_vector_elt.




More information about the All-commits mailing list