[llvm] [PatternMatch] Introduce match functor (NFC) (PR #159386)
    Luke Lau via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Sep 17 09:19:03 PDT 2025
    
    
  
================
@@ -5662,7 +5658,7 @@ static Constant *simplifyFPOp(ArrayRef<Value *> Ops, FastMathFlags FMF,
                               RoundingMode Rounding) {
   // Poison is independent of anything else. It always propagates from an
   // operand to a math result.
-  if (any_of(Ops, [](Value *V) { return match(V, m_Poison()); }))
+  if (any_of(Ops, match_fn(m_Poison())))
----------------
lukel97 wrote:
`IsaPred<PoisonValue>`
https://github.com/llvm/llvm-project/pull/159386
    
    
More information about the llvm-commits
mailing list