Lines Matching refs:Step
265 bool isSupportedStep(const SCEV* Step);
509 bool LoopPredication::isSupportedStep(const SCEV* Step) { in isSupportedStep() argument
510 return Step->isOne() || (Step->isAllOnesValue() && EnableCountDownLoop); in isSupportedStep()
710 auto *Step = RangeCheckIV->getStepRecurrence(*SE); in widenICmpRangeCheck() local
713 if (!isSupportedStep(Step)) { in widenICmpRangeCheck()
729 assert(Step->getType() == in widenICmpRangeCheck()
732 if (Step != CurrLatchCheck.IV->getStepRecurrence(*SE)) { in widenICmpRangeCheck()
737 if (Step->isOne()) in widenICmpRangeCheck()
741 assert(Step->isAllOnesValue() && "Step should be -1!"); in widenICmpRangeCheck()
894 auto *Step = Result->IV->getStepRecurrence(*SE); in parseLoopLatchICmp() local
895 if (!isSupportedStep(Step)) { in parseLoopLatchICmp()
896 LLVM_DEBUG(dbgs() << "Unsupported loop stride(" << *Step << ")!\n"); in parseLoopLatchICmp()
900 auto IsUnsupportedPredicate = [](const SCEV *Step, ICmpInst::Predicate Pred) { in parseLoopLatchICmp() argument
901 if (Step->isOne()) { in parseLoopLatchICmp()
905 assert(Step->isAllOnesValue() && "Step should be -1!"); in parseLoopLatchICmp()
912 if (IsUnsupportedPredicate(Step, Result->Pred)) { in parseLoopLatchICmp()