Lines Matching refs:Count
129 UP.Count = CurrentCount; in getUnrollingPreferences()
192 Pass *llvm::createLoopUnrollPass(int Threshold, int Count, int AllowPartial, in INITIALIZE_AG_DEPENDENCY()
194 return new LoopUnroll(Threshold, Count, AllowPartial, Runtime); in INITIALIZE_AG_DEPENDENCY()
270 unsigned Count = CountValue->getZExtValue(); in UnrollCountPragmaValue() local
271 assert(Count >= 1 && "Unroll count must be positive."); in UnrollCountPragmaValue()
272 return Count; in UnrollCountPragmaValue()
285 unsigned Count = UserCount ? CurrentCount : 0; in selectUnrollCount() local
289 if (Count == 0) { in selectUnrollCount()
291 Count = PragmaCount; in selectUnrollCount()
295 Count = TripCount; in selectUnrollCount()
299 if (Count == 0) in selectUnrollCount()
300 Count = UP.Count; in selectUnrollCount()
302 if (Count == 0) { in selectUnrollCount()
306 Count = UnrollRuntimeCount; in selectUnrollCount()
312 Count = TripCount; in selectUnrollCount()
314 if (TripCount && Count > TripCount) in selectUnrollCount()
316 return Count; in selectUnrollCount()
356 unsigned Count = selectUnrollCount(L, TripCount, HasEnablePragma, PragmaCount, in runOnLoop() local
364 uint64_t UnrolledSize = (uint64_t)LoopSize * Count; in runOnLoop()
382 if (TripCount && Count == TripCount) { in runOnLoop()
384 DEBUG(dbgs() << " Too large to fully unroll with count: " << Count in runOnLoop()
391 } else if (TripCount && Count < TripCount) { in runOnLoop()
398 unsigned OriginalCount = Count; in runOnLoop()
409 Count = PartialThreshold / LoopSize; in runOnLoop()
410 while (Count != 0 && TripCount % Count != 0) in runOnLoop()
411 Count--; in runOnLoop()
421 while (Count != 0 && UnrolledSize > PartialThreshold) { in runOnLoop()
422 Count >>= 1; in runOnLoop()
423 UnrolledSize = LoopSize * Count; in runOnLoop()
425 if (Count > UP.MaxCount) in runOnLoop()
426 Count = UP.MaxCount; in runOnLoop()
427 DEBUG(dbgs() << " partially unrolling with count: " << Count << "\n"); in runOnLoop()
437 if (TripCount && Count != TripCount) { in runOnLoop()
448 } else if (PragmaCount > 0 && Count != OriginalCount) { in runOnLoop()
456 if (Unrolling != Full && Count < 2) { in runOnLoop()
463 if (!UnrollLoop(L, Count, TripCount, AllowRuntime, TripMultiple, LI, this, &LPM)) in runOnLoop()