Lines Matching refs:TripCount
235 analyzeLoopUnrollCost(const Loop *L, unsigned TripCount, DominatorTree &DT, in analyzeLoopUnrollCost() argument
250 if (!UnrollMaxIterationsCountToAnalyze || !TripCount || in analyzeLoopUnrollCost()
251 TripCount > UnrollMaxIterationsCountToAnalyze) in analyzeLoopUnrollCost()
373 for (unsigned Iteration = 0; Iteration < TripCount; ++Iteration) { in analyzeLoopUnrollCost()
518 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
694 ScalarEvolution *SE, unsigned TripCount, in computeUnrollCount() argument
726 if (PragmaFullUnroll && TripCount != 0) { in computeUnrollCount()
727 UP.Count = TripCount; in computeUnrollCount()
741 if (ExplicitUnroll && TripCount != 0) { in computeUnrollCount()
753 if (TripCount && TripCount <= UP.FullUnrollMaxCount) { in computeUnrollCount()
756 UnrolledSize = (uint64_t)(LoopSize - BEInsns) * TripCount + BEInsns; in computeUnrollCount()
759 UP.Count = TripCount; in computeUnrollCount()
766 L, TripCount, DT, *SE, TTI, in computeUnrollCount()
772 UP.Count = TripCount; in computeUnrollCount()
780 if (TripCount) { in computeUnrollCount()
782 UP.Count = TripCount; in computeUnrollCount()
798 while (UP.Count != 0 && TripCount % UP.Count != 0) in computeUnrollCount()
821 UP.Count = TripCount; in computeUnrollCount()
823 if ((PragmaFullUnroll || PragmaEnableUnroll) && TripCount && in computeUnrollCount()
824 UP.Count != TripCount) in computeUnrollCount()
831 assert(TripCount == 0 && in computeUnrollCount()
932 unsigned TripCount = 0; in tryToUnrollLoop() local
941 TripCount = SE->getSmallConstantTripCount(L, ExitingBlock); in tryToUnrollLoop()
964 bool IsCountSetExplicitly = computeUnrollCount(L, TTI, DT, LI, SE, TripCount, in tryToUnrollLoop()
969 if (TripCount && UP.Count > TripCount) in tryToUnrollLoop()
970 UP.Count = TripCount; in tryToUnrollLoop()
973 if (!UnrollLoop(L, UP.Count, TripCount, UP.Force, UP.Runtime, in tryToUnrollLoop()