File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments