[all-commits] [llvm/llvm-project] 640829: [RISCV] Fold add_vl into accumulator operand of vq...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon May 12 15:05:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64082912a500d004c53ad1b3425098b495572663
      https://github.com/llvm/llvm-project/commit/64082912a500d004c53ad1b3425098b495572663
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-zvqdotq.ll

  Log Message:
  -----------
  [RISCV] Fold add_vl into accumulator operand of vqdot* (#139484)

If we have a add_vl following a vqdot* instruction, we can move the add
before the vqdot instead. For cases where the prior accumulator was
zero, we can fold the add into the vqdot* instruction entirely. This
directly parallels the folding we do for multiply add variants.



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