From 25b8cf2ceb2cae2ca31dfa52982ddc8129ba072b Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Thu, 21 Aug 2025 17:30:46 +0100 Subject: [PATCH] [VPlan] Improve style in match_combine_or (NFC) --- llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h b/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h index 18ab7ddb425ab..85618430b1e87 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h +++ b/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h @@ -158,11 +158,7 @@ template struct match_combine_or { match_combine_or(const LTy &Left, const RTy &Right) : L(Left), R(Right) {} template bool match(ITy *V) const { - if (L.match(V)) - return true; - if (R.match(V)) - return true; - return false; + return L.match(V) || R.match(V); } };