[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
================
@@ -1299,7 +1299,7 @@ static Value *simplifyUsingControlFlow(InstCombiner &Self, PHINode &PN,
// \ /
// phi [v1] [v2]
// Make sure all inputs are constants.
- if (!all_of(PN.operands(), [](Value *V) { return isa<ConstantInt>(V); }))
+ if (!all_of(PN.operands(), match_fn(m_ConstantInt())))
----------------
lukel97 wrote:
IsaPred
https://github.com/llvm/llvm-project/pull/159386
More information about the llvm-commits
mailing list