[llvm] [VPlan] Use match_fn in uncountableEarlyExit (NFC) (PR #213289)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 08:24:17 PDT 2026
https://github.com/artagnon created https://github.com/llvm/llvm-project/pull/213289
None
>From 0ad668204160b512899c44a7cd7397ae6dd57a71 Mon Sep 17 00:00:00 2001
From: Ramkumar Ramachandra <artagnon at tenstorrent.com>
Date: Fri, 31 Jul 2026 16:21:36 +0100
Subject: [PATCH] [VPlan] Use match_fn in uncountableEarlyExit (NFC)
---
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 4d6f40ec32a62..c487e7ec9af64 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -3035,9 +3035,8 @@ getRecipesForUncountableExit(SmallVectorImpl<VPInstruction *> &Recipes,
// If we couldn't match anything, don't return the condition. It may be
// defined outside the loop.
- if (Recipes.empty() || none_of(Recipes, [](VPInstruction *I) {
- return match(I, m_VPInstruction<Instruction::GetElementPtr>());
- }))
+ if (Recipes.empty() ||
+ none_of(Recipes, match_fn(m_VPInstruction<Instruction::GetElementPtr>())))
return std::nullopt;
return UncountableCondition;
More information about the llvm-commits
mailing list