Skip to content

Commit 2975e67

Browse files
authored
[VPlan] Improve style in match_combine_or (NFC) (#154793)
1 parent ee5367b commit 2975e67

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,7 @@ template <typename LTy, typename RTy> struct match_combine_or {
153153
match_combine_or(const LTy &Left, const RTy &Right) : L(Left), R(Right) {}
154154

155155
template <typename ITy> bool match(ITy *V) const {
156-
if (L.match(V))
157-
return true;
158-
if (R.match(V))
159-
return true;
160-
return false;
156+
return L.match(V) || R.match(V);
161157
}
162158
};
163159

0 commit comments

Comments
 (0)