Lines Matching refs:Step
264 bool isSupportedStep(const SCEV* Step);
502 bool LoopPredication::isSupportedStep(const SCEV* Step) { in isSupportedStep() argument
503 return Step->isOne() || (Step->isAllOnesValue() && EnableCountDownLoop); in isSupportedStep()
702 auto *Step = RangeCheckIV->getStepRecurrence(*SE); in widenICmpRangeCheck() local
705 if (!isSupportedStep(Step)) { in widenICmpRangeCheck()
721 assert(Step->getType() == in widenICmpRangeCheck()
724 if (Step != CurrLatchCheck.IV->getStepRecurrence(*SE)) { in widenICmpRangeCheck()
729 if (Step->isOne()) in widenICmpRangeCheck()
733 assert(Step->isAllOnesValue() && "Step should be -1!"); in widenICmpRangeCheck()
886 auto *Step = Result->IV->getStepRecurrence(*SE); in parseLoopLatchICmp() local
887 if (!isSupportedStep(Step)) { in parseLoopLatchICmp()
888 LLVM_DEBUG(dbgs() << "Unsupported loop stride(" << *Step << ")!\n"); in parseLoopLatchICmp()
892 auto IsUnsupportedPredicate = [](const SCEV *Step, ICmpInst::Predicate Pred) { in parseLoopLatchICmp() argument
893 if (Step->isOne()) { in parseLoopLatchICmp()
897 assert(Step->isAllOnesValue() && "Step should be -1!"); in parseLoopLatchICmp()
904 if (IsUnsupportedPredicate(Step, Result->Pred)) { in parseLoopLatchICmp()