[llvm] 2975e67 - [VPlan] Improve style in match_combine_or (NFC) (#154793)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 04:01:45 PDT 2025
Author: Ramkumar Ramachandra
Date: 2025-08-22T12:01:42+01:00
New Revision: 2975e674ec732fb992b9df049b81558bb17f5ca7
URL: https://github.com/llvm/llvm-project/commit/2975e674ec732fb992b9df049b81558bb17f5ca7
DIFF: https://github.com/llvm/llvm-project/commit/2975e674ec732fb992b9df049b81558bb17f5ca7.diff
LOG: [VPlan] Improve style in match_combine_or (NFC) (#154793)
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h b/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
index fffb1957257b1..490c5c4cce797 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
@@ -153,11 +153,7 @@ template <typename LTy, typename RTy> struct match_combine_or {
match_combine_or(const LTy &Left, const RTy &Right) : L(Left), R(Right) {}
template <typename ITy> 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);
}
};
More information about the llvm-commits
mailing list