[llvm] [SLP] Support ordered FAdd reductions in SLPVectorizer (PR #146570)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 09:59:18 PDT 2025
================
@@ -21787,6 +21799,14 @@ class HorizontalReduction {
(match(I, m_LogicalAnd()) || match(I, m_LogicalOr()));
}
+ bool isOrderedFaddReduction() const {
+ if (!isa<Instruction>(ReductionRoot))
+ return false;
+ auto *I = cast<Instruction>(ReductionRoot);
+ return (RdxKind == RecurKind::FAdd) &&
----------------
alexey-bataev wrote:
Drop parens
https://github.com/llvm/llvm-project/pull/146570
More information about the llvm-commits
mailing list