[all-commits] [llvm/llvm-project] 7ec2b1: [LV] Allow partial reductions with an extended bin op

Sam Tebbs via All-commits all-commits at lists.llvm.org
Wed Oct 29 03:29:40 PDT 2025


  Branch: refs/heads/users/SamTebbs33/partialred-extended-binop
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ec2b16f39c07a490db8ada3cc7e49f9d03487aa
      https://github.com/llvm/llvm-project/commit/7ec2b16f39c07a490db8ada3cc7e49f9d03487aa
  Author: Samuel Tebbs <samuel.tebbs at arm.com>
  Date:   2025-10-29 (Wed, 29 Oct 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-constant-ops.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-dot-product-neon.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/vplan-printing.ll
    M llvm/test/Transforms/LoopVectorize/vplan-printing-reductions.ll

  Log Message:
  -----------
  [LV] Allow partial reductions with an extended bin op

A pattern of the form reduce.add(ext(mul)) is valid for a partial
reduction as long as the mul and its operands fulfill the requirements
of a normal partial reduction. The mul's extend operands will be
optimised to the wider extend, and we already have oneUse checks in
place to make sure the mul and operands can be modified safely.



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