[all-commits] [llvm/llvm-project] c07382: [RISCV] Reduce VL of vmerge.vvm's true operand (#1...

Luke Lau via All-commits all-commits at lists.llvm.org
Mon Aug 26 10:12:07 PDT 2024


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
    M llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-masked-vops.ll
    M llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-vops.ll

  Log Message:
  -----------
  [RISCV] Reduce VL of vmerge.vvm's true operand (#105786)

This extends the peephole added in #104689 to also reduce the VL of a
PseudoVMERGE_VVM's true operand.

We could extend this later to reduce the false operand as well, but this
starts with just the true operand since it allows vmerges that are
converted to vmv.v.vs (convertVMergeToVMv) to be potentially further
folded into their source (foldVMV_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