[all-commits] [llvm/llvm-project] 8c1a55: [InstCombine][X86] Fold add(vpmadd52(0, a, b), x) ...

Adam Scott via All-commits all-commits at lists.llvm.org
Mon Jun 8 07:24:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c1a55cb738580858b0870e04884b2e323f38484
      https://github.com/llvm/llvm-project/commit/8c1a55cb738580858b0870e04884b2e323f38484
  Author: Adam Scott <88979030+as4230 at users.noreply.github.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
    A llvm/test/Transforms/InstCombine/X86/x86-vpmadd52.ll

  Log Message:
  -----------
  [InstCombine][X86] Fold add(vpmadd52(0, a, b), x) -> vpmadd52(x, a, b) (#195937)

vpmadd52 computes acc + P(a, b) mod 2^64 where P is independent of acc
so add(vpmadd52(0, a, b), x) = vpmadd52(x, a, b).

Applies to all six vpmadd52{h,l}.uq.{128,256,512} variants.

Fixes #194697



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