[llvm] [AArch64] Fold four and eight way partial reductions with [SU]ADDLP (PR #214636)
Ricardo Jesus via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 04:12:45 PDT 2026
================
@@ -19082,6 +19095,12 @@ bool AArch64TargetLowering::optimizeExtendOrTruncateConversion(
m_Intrinsic<Intrinsic::vector_partial_reduce_add>(
m_Value(), m_Specific(I))))
return true;
+ if (match(SingleUser,
+ m_c_Mul(m_Specific(I), m_ZExtOrSExt(m_Value()))) &&
+ SingleUser->hasOneUse() &&
+ match(SingleUser->user_back(),
+ m_Intrinsic<Intrinsic::vector_partial_reduce_add>()))
+ return true;
----------------
rj-jesus wrote:
No rush at all - was just wondering if it had slipped through the cracks by accident. Take as long as needed!
https://github.com/llvm/llvm-project/pull/214636
More information about the llvm-commits
mailing list