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 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); } };