[llvm] [IR] Add matchers for remaining FP min/max intrinsics (NFC). (PR #137612)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 12:28:02 PDT 2025


================
@@ -784,17 +784,17 @@ RecurrenceDescriptor::isMinMaxPattern(Instruction *I, RecurKind Kind,
     return InstDesc(Kind == RecurKind::FMin, I);
   if (match(I, m_OrdOrUnordFMax(m_Value(), m_Value())))
     return InstDesc(Kind == RecurKind::FMax, I);
-  if (match(I, m_Intrinsic<Intrinsic::minnum>(m_Value(), m_Value())))
+  if (match(I, m_FMin(m_Value(), m_Value())))
     return InstDesc(Kind == RecurKind::FMin, I);
-  if (match(I, m_Intrinsic<Intrinsic::maxnum>(m_Value(), m_Value())))
+  if (match(I, m_FMax(m_Value(), m_Value())))
----------------
fhahn wrote:

Ok turns out the matchers weren't used before this PR, so I pulled in the update here

https://github.com/llvm/llvm-project/pull/137612


More information about the llvm-commits mailing list