diff options
| author | Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> | 2025-08-22 12:01:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-22 12:01:42 +0100 |
| commit | 2975e674ec732fb992b9df049b81558bb17f5ca7 (patch) | |
| tree | f136295febd54edff344b4552b2eca1134f902b8 /llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h | |
| parent | ee5367bedb97ae8df9930ac1c162b3287c743663 (diff) | |
[VPlan] Improve style in match_combine_or (NFC) (#154793)
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h b/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h index fffb1957257b..490c5c4cce79 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); } }; |
