[all-commits] [llvm/llvm-project] 18d5b9: [LV] Simplify costing partial reduction chain link...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Thu Apr 9 04:04:12 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18d5b9ec0cfd09b374636daea047ab5e7dc9bc3e
      https://github.com/llvm/llvm-project/commit/18d5b9ec0cfd09b374636daea047ab5e7dc9bc3e
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2026-04-09 (Thu, 09 Apr 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

  Log Message:
  -----------
  [LV] Simplify costing partial reduction chain links (NFCI) (#190980)

Previously, `getPartialReductionLinkCost()` needed to figure out what
case `matchExtendedReductionOperand()` matched to compute a cost. This
made adding new cases to `matchExtendedReductionOperand()` more complex
and added some redundancy.

This patch updates `ExtendedReductionOperand` so that it contains all
the information needed to compute the cost ready to pass to
`getPartialReductionCost()`. This means matching new operand forms only
needs to be done in `matchExtendedReductionOperand()`.

This is split off from #188043 (this change simplifies matching absolute
difference operands).



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