[all-commits] [llvm/llvm-project] bd695f: [SLP]Fix splat gather subtree keep/drop to restore...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Sep 15 14:06:29 PDT 2026


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/splat-gather-subtree-keep-drop.ll
    M llvm/test/Transforms/SLPVectorizer/AArch64/splat-gather-subtree-satd.ll

  Log Message:
  -----------
  [SLP]Fix splat gather subtree keep/drop to restore lost vectorization

The splat gather subtrees were kept on cost ties and resurrected by the
trimming revert without a profitability re-check, and dropping them left
the gathered loads built for them orphaned and forcing extracts. This
rejected otherwise profitable VF=2 trees. Keep subtrees only when
strictly profitable, re-evaluate them against the restored tree on a
revert, and delete the gathered loads left dead by a drop.

Fixes the remaining regressions from #220250 reported in #221717.

Reviewers: 

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



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