[all-commits] [llvm/llvm-project] 860fb7: [SLP]Reduce logical and/or reductions in the wide ...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Sun Sep 13 07:51:36 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 860fb775d3d626af6e4a45ea5d62039718957d26
      https://github.com/llvm/llvm-project/commit/860fb775d3d626af6e4a45ea5d62039718957d26
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-09-13 (Sun, 13 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPCostAnalysis.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPCostAnalysis.h
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPReductionUtils.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPReductionUtils.h
    M llvm/test/Transforms/SLPVectorizer/X86/logical-reduction-booleanized-leaves.ll

  Log Message:
  -----------
  [SLP]Reduce logical and/or reductions in the wide leaf type

Logical and/or reductions on i1 with booleanized wide leaves (truncs
of same-op chains, zero-tests of values from [0, 1]) are performed in
the wide type, exposing the underlying consecutive values to the tree;
bit 0 of the result is the final value. Fixes the fragmented reduction
and the gather-of-scalars regression for compile-time-expanded Boolean
reductions.

Fixes #221167

Reviewers: RKSimon, bababuck

Pull Request: https://github.com/llvm/llvm-project/pull/221321



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