Skip to content

Commit 25b8cf2

Browse files
committed
[VPlan] Improve style in match_combine_or (NFC)
1 parent 60ee056 commit 25b8cf2

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
@@ -158,11 +158,7 @@ template <typename LTy, typename RTy> struct match_combine_or {
158158
match_combine_or(const LTy &Left, const RTy &Right) : L(Left), R(Right) {}
159159

160160
template <typename ITy> bool match(ITy *V) const {
161-
if (L.match(V))
162-
return true;
163-
if (R.match(V))
164-
return true;
165-
return false;
161+
return L.match(V) || R.match(V);
166162
}
167163
};
168164

0 commit comments

Comments
 (0)