llvm/llvm-project

[X86] Recognise VPMADD52L/H patterns on AVX512IFMA/AVXIFMA targets

Open

#153.787 geöffnet am 15. Aug. 2025

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (10.782 Forks)batch import
backend:X86good first issuemissed-optimization

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

AVX512IFMA/AVXIFMA targets should be able to fold vXi64 mul-add patterns assuming the multiplicands are known to be u52 integers

X86ISD::VPMADD52L patterns can be matched for (X * Y) + Z if the upper 12 bits of X, Y AND (X * Y) are all known zero

X86ISD::VPMADD52H patterns are trickier as we extract the upper 52 bits of the (X * Y) 104-bit mulu extended result, but at least basic matching might be achievable

Contributor Guide