[all-commits] [llvm/llvm-project] aad699: [RISCV] Fold PseudoVMV_V_V with undef passthru, ha...

Luke Lau via All-commits all-commits at lists.llvm.org
Wed Sep 4 21:04:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aad699776496a80af5e062b446fe26a4313ff3e3
      https://github.com/llvm/llvm-project/commit/aad699776496a80af5e062b446fe26a4313ff3e3
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-09-05 (Thu, 05 Sep 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
    M llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-to-vmv.mir
    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] Fold PseudoVMV_V_V with undef passthru, handling policy (#106943)

If a vmv.v.v has an undef passthru then we can just replace it with its
input operand, since the tail is completely undefined.

This is a reattempt of #106840, but also checks to see if the input was
a pseudo where we can relax its tail policy to undef.

This also means we don't need to check for undef passthrus in
foldVMV_V_V anymore because they will be handled by
foldUndefPassthruVMV_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