[llvm] [PatternMatch] Introduce match functor (NFC) (PR #159386)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 17 09:19:02 PDT 2025
================
@@ -7126,7 +7122,7 @@ static Value *simplifyInstructionWithOperands(Instruction *I,
switch (I->getOpcode()) {
default:
- if (llvm::all_of(NewOps, [](Value *V) { return isa<Constant>(V); })) {
+ if (all_of(NewOps, match_fn(m_Constant()))) {
----------------
lukel97 wrote:
Same here for IsaPred<Constant>
https://github.com/llvm/llvm-project/pull/159386
More information about the llvm-commits
mailing list