[all-commits] [llvm/llvm-project] 4fcb6e: [RISCV] Commute Src in foldVMV_V_V (#170536)

Luke Lau via All-commits all-commits at lists.llvm.org
Wed Dec 3 22:39:45 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4fcb6e11c1de0469e3c3b08de9a9e488ec63e193
      https://github.com/llvm/llvm-project/commit/4fcb6e11c1de0469e3c3b08de9a9e488ec63e193
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-12-04 (Thu, 04 Dec 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
    M llvm/test/CodeGen/RISCV/rvv/vmv.v.v-peephole.ll
    M llvm/test/CodeGen/RISCV/rvv/vmv.v.v-peephole.mir

  Log Message:
  -----------
  [RISCV] Commute Src in foldVMV_V_V (#170536)

In #156499 we taught the vmerge peephole to commute operands so that the
passthru operands lined up. We can do the same for the vmv.v.v peephole,
which allows us fold more vmv.v.vs away.

This is needed to prevent a regression in an upcoming patch that adds a
combine for vmerge.vvm to vmv.v.v.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list