Lines Matching refs:MaxBECount
1654 const SCEV *MaxBECount = getConstantMaxBackedgeTakenCount(L); in getZeroExtendExpr() local
1655 if (!isa<SCEVCouldNotCompute>(MaxBECount)) { in getZeroExtendExpr()
1661 getTruncateOrZeroExtend(MaxBECount, Start->getType(), Depth); in getZeroExtendExpr()
1663 CastedMaxBECount, MaxBECount->getType(), Depth); in getZeroExtendExpr()
1664 if (MaxBECount == RecastedMaxBECount) { in getZeroExtendExpr()
1721 if (!isa<SCEVCouldNotCompute>(MaxBECount) || HasGuards || in getZeroExtendExpr()
1995 const SCEV *MaxBECount = getConstantMaxBackedgeTakenCount(L); in getSignExtendExpr() local
1996 if (!isa<SCEVCouldNotCompute>(MaxBECount)) { in getSignExtendExpr()
2003 getTruncateOrZeroExtend(MaxBECount, Start->getType(), Depth); in getSignExtendExpr()
2005 CastedMaxBECount, MaxBECount->getType(), Depth); in getSignExtendExpr()
2006 if (MaxBECount == RecastedMaxBECount) { in getSignExtendExpr()
4680 const SCEV *MaxBECount = getConstantMaxBackedgeTakenCount(L); in proveNoSignedWrapViaInduction() local
4690 if (isa<SCEVCouldNotCompute>(MaxBECount) && !HasGuards && in proveNoSignedWrapViaInduction()
4730 const SCEV *MaxBECount = getConstantMaxBackedgeTakenCount(L); in proveNoUnsignedWrapViaInduction() local
4740 if (isa<SCEVCouldNotCompute>(MaxBECount) && !HasGuards && in proveNoUnsignedWrapViaInduction()
6146 const SCEV *MaxBECount = getConstantMaxBackedgeTakenCount(AddRec->getLoop()); in getRangeRef() local
6147 if (!isa<SCEVCouldNotCompute>(MaxBECount) && in getRangeRef()
6148 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) { in getRangeRef()
6150 AddRec->getStart(), AddRec->getStepRecurrence(*this), MaxBECount, in getRangeRef()
6156 AddRec->getStart(), AddRec->getStepRecurrence(*this), MaxBECount, in getRangeRef()
6167 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth && in getRangeRef()
6262 const APInt &MaxBECount, in getRangeForAffineARHelper() argument
6266 if (Step == 0 || MaxBECount == 0) in getRangeForAffineARHelper()
6288 if (APInt::getMaxValue(StartRange.getBitWidth()).udiv(Step).ult(MaxBECount)) in getRangeForAffineARHelper()
6293 APInt Offset = Step * MaxBECount; in getRangeForAffineARHelper()
6322 const SCEV *MaxBECount, in getRangeForAffineAR() argument
6324 assert(!isa<SCEVCouldNotCompute>(MaxBECount) && in getRangeForAffineAR()
6325 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth && in getRangeForAffineAR()
6328 MaxBECount = getNoopOrZeroExtend(MaxBECount, Start->getType()); in getRangeForAffineAR()
6329 APInt MaxBECountValue = getUnsignedRangeMax(MaxBECount); in getRangeForAffineAR()
6354 const SCEVAddRecExpr *AddRec, const SCEV *MaxBECount, unsigned BitWidth, in getRangeForAffineNoSelfWrappingAR() argument
6369 if (getTypeSizeInBits(MaxBECount->getType()) > in getRangeForAffineNoSelfWrappingAR()
6372 MaxBECount = getNoopOrZeroExtend(MaxBECount, AddRec->getType()); in getRangeForAffineNoSelfWrappingAR()
6376 if (!isKnownPredicateViaConstantRanges(ICmpInst::ICMP_ULE, MaxBECount, in getRangeForAffineNoSelfWrappingAR()
6384 const SCEV *End = AddRec->evaluateAtIteration(MaxBECount, *this); in getRangeForAffineNoSelfWrappingAR()
6423 const SCEV *MaxBECount, in getRangeViaFactoring() argument
6529 this->getRangeForAffineAR(TrueStart, TrueStep, MaxBECount, BitWidth); in getRangeViaFactoring()
6531 this->getRangeForAffineAR(FalseStart, FalseStep, MaxBECount, BitWidth); in getRangeViaFactoring()
7789 const SCEV *MaxBECount = MustExitMaxBECount ? MustExitMaxBECount : in computeBackedgeTakenCount() local
7795 MaxBECount, MaxOrZero); in computeBackedgeTakenCount()
7963 const SCEV *MaxBECount = getCouldNotCompute(); in computeExitLimitFromCondFromBinOp() local
7994 MaxBECount = EL1.MaxNotTaken; in computeExitLimitFromCondFromBinOp()
7996 MaxBECount = EL0.MaxNotTaken; in computeExitLimitFromCondFromBinOp()
7998 MaxBECount = getUMinFromMismatchedTypes(EL0.MaxNotTaken, EL1.MaxNotTaken); in computeExitLimitFromCondFromBinOp()
8011 if (isa<SCEVCouldNotCompute>(MaxBECount) && in computeExitLimitFromCondFromBinOp()
8013 MaxBECount = getConstant(getUnsignedRangeMax(BECount)); in computeExitLimitFromCondFromBinOp()
8015 return ExitLimit(BECount, MaxBECount, false, in computeExitLimitFromCondFromBinOp()
9488 APInt MaxBECount = getUnsignedRangeMax(applyLoopGuards(Distance, L)); in howFarToZero() local
9490 if (MaxBECountBase.ult(MaxBECount)) in howFarToZero()
9491 MaxBECount = MaxBECountBase; in howFarToZero()
9507 MaxBECount = APIntOps::umin(MaxBECount, CR.getUnsignedMax() - 1); in howFarToZero()
9509 return ExitLimit(Distance, getConstant(MaxBECount), false, Predicates); in howFarToZero()
11763 const SCEV *MaxBECount = computeMaxBECountForLT( in howManyLessThans() local
11765 return ExitLimit(getCouldNotCompute() /* ExactNotTaken */, MaxBECount, in howManyLessThans()
11928 const SCEV *MaxBECount; in howManyLessThans() local
11931 MaxBECount = BECount; in howManyLessThans()
11937 MaxBECount = BECountIfBackedgeTaken; in howManyLessThans()
11940 MaxBECount = computeMaxBECountForLT( in howManyLessThans()
11944 if (isa<SCEVCouldNotCompute>(MaxBECount) && in howManyLessThans()
11946 MaxBECount = getConstant(getUnsignedRangeMax(BECount)); in howManyLessThans()
11948 return ExitLimit(BECount, MaxBECount, MaxOrZero, Predicates); in howManyLessThans()
12036 const SCEV *MaxBECount = isa<SCEVConstant>(BECount) in howManyGreaterThans() local
12041 if (isa<SCEVCouldNotCompute>(MaxBECount)) in howManyGreaterThans()
12042 MaxBECount = BECount; in howManyGreaterThans()
12044 return ExitLimit(BECount, MaxBECount, false, Predicates); in howManyGreaterThans()