llvm/llvm-project

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

开放

#153,787 创建于 2025年8月15日

 (7 条评论) (0 个反应) (1 位负责人)C++ (10,782 个派生)batch import
backend:X86good first issuemissed-optimization

仓库指标

星标
 (26,378 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南