Skip to content

Commit b983ce8

Browse files
committed
[VPlan] handleMaxMinNumReductions - fix gcc Wparentheses warning. NFC.
1 parent c3902e4 commit b983ce8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,12 @@ bool VPlanTransforms::handleMaxMinNumReductions(VPlan &Plan) {
671671
Intrinsic::ID RdxIntrinsicId =
672672
RedPhiR->getRecurrenceKind() == RecurKind::FMaxNum ? Intrinsic::maxnum
673673
: Intrinsic::minnum;
674-
assert((isa<VPWidenIntrinsicRecipe>(MinMaxR) &&
675-
cast<VPWidenIntrinsicRecipe>(MinMaxR)->getVectorIntrinsicID() ==
676-
RdxIntrinsicId) ||
677-
(RepR &&
678-
cast<IntrinsicInst>(RepR->getUnderlyingInstr())->getIntrinsicID() ==
679-
RdxIntrinsicId) &&
680-
"Intrinsic did not match recurrence kind");
674+
assert(((isa<VPWidenIntrinsicRecipe>(MinMaxR) &&
675+
cast<VPWidenIntrinsicRecipe>(MinMaxR)->getVectorIntrinsicID() ==
676+
RdxIntrinsicId) ||
677+
(RepR && cast<IntrinsicInst>(RepR->getUnderlyingInstr())
678+
->getIntrinsicID() == RdxIntrinsicId)) &&
679+
"Intrinsic did not match recurrence kind");
681680
#endif
682681

683682
if (MinMaxR->getOperand(0) == RedPhiR)

0 commit comments

Comments
 (0)