[all-commits] [llvm/llvm-project] adba9d: [SLP]Support copyable fadds in fmuladd, modeled as...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Aug 4 06:44:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: adba9da44faf9c8a4b8695623023c265ffe59301
      https://github.com/llvm/llvm-project/commit/adba9da44faf9c8a4b8695623023c265ffe59301
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPCompatibilityAnalysis.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPCompatibilityAnalysis.h
    M llvm/test/Transforms/SLPVectorizer/X86/fmuladd-copyable-fadd.ll

  Log Message:
  -----------
  [SLP]Support copyable fadds in fmuladd, modeled as fmuladd(1.0, a, b)

A copyable single-use fadd a, b is modeled as fmuladd(1.0, a, b), which
equals fadd a, b (the multiply by 1.0 is exact and preserves signed
zeros), so the add dies instead of being computed and gathered. The
addend/multiplicand assignment per lane matches the majority operand
kinds of the non-copyable lanes. Same all-or-nothing and tie-break
rules as for absorbed fmuls.

Reviewers: hiraditya, bababuck, RKSimon

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



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