[all-commits] [llvm/llvm-project] 6fd4b8: [LV] Optimize partial reduction extends before han...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Thu Jun 4 01:31:07 PDT 2026


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

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

  Log Message:
  -----------
  [LV] Optimize partial reduction extends before handling inloop subs (#199665)

The crash avoided in #194660 was caused by the extend optimizations
failing to match as due to the extra sub/negation added to the
"ExtendedOp".

A similar crash exists for [us]abs partial reductions (see
https://godbolt.org/z/MerMon5rE), which is fixed with this patch.

This patch solves the underlying issue by running the extend
optimizations before any inloop sub/fsub handling.

Fixes #194000



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