[all-commits] [llvm/llvm-project] c07a1f: [RISCV] Lower vfmv.s.f intrinsics to VFMV_S_F_VL f...

Luke Lau via All-commits all-commits at lists.llvm.org
Sun Jan 14 21:07:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c07a1fe7b448a7af72b931440be02bd9d2551138
      https://github.com/llvm/llvm-project/commit/c07a1fe7b448a7af72b931440be02bd9d2551138
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-01-15 (Mon, 15 Jan 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
    M llvm/test/CodeGen/RISCV/rvv/vfmv.s.f.ll

  Log Message:
  -----------
  [RISCV] Lower vfmv.s.f intrinsics to VFMV_S_F_VL first (#76699)

Currently vfmv.s.f intrinsics are directly selected to their pseudos via
a
tablegen pattern in RISCVInstrInfoVPseudos.td, whereas the other move
instructions (vmv.s.x/vmv.v.x/vmv.v.f etc.) first get lowered to their
corresponding VL SDNode, then get selected from a pattern in
RISCVInstrInfoVVLPatterns.td

This patch brings vfmv.s.f inline with the other move instructions.

Split out from #71501, where we did this to preserve the behaviour of
selecting
vmv_s_x for VFMV_S_F_VL for small enough immediates.




More information about the All-commits mailing list