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

Lines Matching defs:TripCount

374     const Loop *L, unsigned TripCount, DominatorTree &DT, ScalarEvolution &SE,
391 if (!TripCount || TripCount > MaxIterationsCountToAnalyze)
513 for (unsigned Iteration = 0; Iteration < TripCount; ++Iteration) {
668 AddCostRecursively(*OpI, TripCount - 1);
779 OptimizationRemarkEmitter *ORE, unsigned &TripCount, unsigned MaxTripCount,
807 if (PragmaFullUnroll && TripCount != 0) {
808 UP.Count = TripCount;
817 if (ExplicitUnroll && TripCount != 0) {
827 // Full unroll makes sense only when TripCount or its upper bound could be
848 unsigned ExactTripCount = TripCount;
860 TripCount = FullUnrollTripCount;
875 TripCount = FullUnrollTripCount;
884 computePeelCount(L, LoopSize, UP, PP, TripCount, SE);
892 // Try partial unroll only when TripCount could be statically calculated.
893 if (TripCount) {
902 UP.Count = TripCount;
904 // Reduce unroll count to be modulo of TripCount for partial unrolling.
911 while (UP.Count != 0 && TripCount % UP.Count != 0)
914 // If there is no Count that is modulo of TripCount, set Count to
936 UP.Count = TripCount;
940 if ((PragmaFullUnroll || PragmaEnableUnroll) && TripCount &&
941 UP.Count != TripCount)
954 assert(TripCount == 0 &&
955 "All cases when TripCount is constant should be covered here.");
1122 unsigned TripCount = 0;
1131 TripCount = SE.getSmallConstantTripCount(L, ExitingBlock);
1154 if (!TripCount) {
1163 L, TTI, DT, LI, SE, EphValues, &ORE, TripCount, MaxTripCount, MaxOrZero,
1167 // Unroll factor (Count) must be less or equal to TripCount.
1168 if (TripCount && UP.Count > TripCount)
1169 UP.Count = TripCount;
1178 {UP.Count, TripCount, UP.Force, UP.Runtime, UP.AllowExpensiveTripCount,