@@ -389,7 +389,7 @@ static RecurrenceDescriptor getMinMaxRecurrence(PHINode *Phi, Loop *TheLoop,
389389 return RecurrenceDescriptor (
390390 Phi->getIncomingValueForBlock (TheLoop->getLoopPreheader ()),
391391 cast<Instruction>(RdxNext), IntermediateStore, RK, FMF, nullptr ,
392- Phi->getType (), false , false , Casts, - 1U );
392+ Phi->getType ());
393393}
394394
395395bool RecurrenceDescriptor::AddReductionVar (
@@ -753,7 +753,7 @@ bool RecurrenceDescriptor::AddReductionVar(
753753 // Save the description of this reduction variable.
754754 RecurrenceDescriptor RD (RdxStart, ExitInstruction, IntermediateStore, Kind,
755755 FMF, ExactFPMathInst, RecurrenceType, IsSigned,
756- IsOrdered, CastInsts, MinWidthCastToRecurrenceType);
756+ IsOrdered, & CastInsts, MinWidthCastToRecurrenceType);
757757 RedDes = RD;
758758
759759 return true ;
@@ -1105,7 +1105,7 @@ bool RecurrenceDescriptor::isReductionPHI(PHINode *Phi, Loop *TheLoop,
11051105 if (RD.getRecurrenceKind () != RecurKind::None) {
11061106 assert (
11071107 RecurrenceDescriptor::isMinMaxRecurrenceKind (RD.getRecurrenceKind ()) &&
1108- " must return a min/max recurrence kind" );
1108+ " Expected a min/max recurrence kind" );
11091109 LLVM_DEBUG (dbgs () << " Found a min/max reduction PHI." << *Phi << " \n " );
11101110 RedDes = RD;
11111111 return true ;
0 commit comments