[all-commits] [llvm/llvm-project] aba347: [RISCV] Move vmv.v.v peephole from SelectionDAG to...

Luke Lau via All-commits all-commits at lists.llvm.org
Fri Aug 16 09:49:48 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aba3476111fbc06f652453c13c99ca029646df47
      https://github.com/llvm/llvm-project/commit/aba3476111fbc06f652453c13c99ca029646df47
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-08-17 (Sat, 17 Aug 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp

  Log Message:
  -----------
  [RISCV] Move vmv.v.v peephole from SelectionDAG to RISCVVectorPeephole (#100367)

This is split off from #71764, and moves only the vmv.v.v part of
performCombineVMergeAndVOps to work on MachineInstrs.

In retrospect trying to handle PseudoVMV_V_V and PseudoVMERGE_VVM in the
same function makes the code quite hard to read, so this just does it in
a separate peephole.

This turns out to be simpler since for PseudoVMV_V_V we don't need to
convert the Src instruction to a masked variant, and we don't need to
create a fake all ones mask.



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