[all-commits] [llvm/llvm-project] c0a3f4: [SLP]Fix stale candidate lookup for externally use...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Sep 29 11:16:59 PDT 2026


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/reduced-val-replaced-twice.ll

  Log Message:
  -----------
  [SLP]Fix stale candidate lookup for externally used reduced values

A candidate may be replaced by earlier vectorization attempts, so the
current scalar was not kept externally used and got erased while still
used by the reduction ops. Look up the tracked value by the original one.

Fixes #227314

Reviewers: 

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



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