[all-commits] [llvm/llvm-project] a1fc5b: [VPlan] Reject partial reductions with invalid cos...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Feb 10 13:16:43 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1fc5b4a48db440e37acd06972a65dd67a3b2b7c
      https://github.com/llvm/llvm-project/commit/a1fc5b4a48db440e37acd06972a65dd67a3b2b7c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-02-10 (Tue, 10 Feb 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-incomplete-chains.ll

  Log Message:
  -----------
  [VPlan] Reject partial reductions with invalid costs in getScaledReds. (#180438)

Check if costs for partial reductions are valid up-front in
getScaledReductions instead when transforming each link in the chain in
transformToPartialReduction. This ensures that we either transform all
entries in the chain together, or none via the existing invalidation
logic.

This fixes a crash when a link in the chain would have invalid cost, as
in the added test cases.

Fixes https://github.com/llvm/llvm-project/issues/180340.

PR: https://github.com/llvm/llvm-project/pull/180438



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