• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/

Lines Matching defs:TripCount

336     const Loop *L, unsigned TripCount, DominatorTree &DT, ScalarEvolution &SE,
352 if (!UnrollMaxIterationsCountToAnalyze || !TripCount ||
353 TripCount > UnrollMaxIterationsCountToAnalyze)
475 for (unsigned Iteration = 0; Iteration < TripCount; ++Iteration) {
630 AddCostRecursively(*OpI, TripCount - 1);
741 OptimizationRemarkEmitter *ORE, unsigned &TripCount, unsigned MaxTripCount,
768 if (PragmaFullUnroll && TripCount != 0) {
769 UP.Count = TripCount;
778 if (ExplicitUnroll && TripCount != 0) {
788 // Full unroll makes sense only when TripCount or its upper bound could be
809 unsigned ExactTripCount = TripCount;
821 TripCount = FullUnrollTripCount;
835 TripCount = FullUnrollTripCount;
844 computePeelCount(L, LoopSize, UP, TripCount, SE);
852 // Try partial unroll only when TripCount could be statically calculated.
853 if (TripCount) {
862 UP.Count = TripCount;
864 // Reduce unroll count to be modulo of TripCount for partial unrolling.
871 while (UP.Count != 0 && TripCount % UP.Count != 0)
874 // If there is no Count that is modulo of TripCount, set Count to
896 UP.Count = TripCount;
900 if ((PragmaFullUnroll || PragmaEnableUnroll) && TripCount &&
901 UP.Count != TripCount)
914 assert(TripCount == 0 &&
915 "All cases when TripCount is constant should be covered here.");
1081 unsigned TripCount = 0;
1090 TripCount = SE.getSmallConstantTripCount(L, ExitingBlock);
1113 if (!TripCount) {
1122 L, TTI, DT, LI, SE, EphValues, &ORE, TripCount, MaxTripCount, MaxOrZero,
1126 // Unroll factor (Count) must be less or equal to TripCount.
1127 if (TripCount && UP.Count > TripCount)
1128 UP.Count = TripCount;
1137 {UP.Count, TripCount, UP.Force, UP.Runtime, UP.AllowExpensiveTripCount,