Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Threshold

36 UnrollThreshold("unroll-threshold", cl::init(150), cl::Hidden,
47 "-unroll-threshold loop size is reached."));
54 PragmaUnrollThreshold("pragma-unroll-threshold", cl::init(16 * 1024), cl::Hidden,
77 /// A magic value for use with the Threshold parameter to indicate
82 // Threshold to use when optsize is specified (and there is no
83 // explicit -unroll-threshold).
125 UP.Threshold = CurrentThreshold;
147 // Select threshold values used to limit unrolling based on a
148 // total unrolled size. Parameters Threshold and PartialThreshold
153 unsigned &Threshold, unsigned &PartialThreshold) {
154 // Determine the current unrolling threshold. While this is
157 // optimize-for-size, and the unroll threshold was not user
159 Threshold = UserThreshold ? CurrentThreshold : UP.Threshold;
165 Threshold = UP.OptSizeThreshold;
173 if (Threshold != NoThreshold)
174 Threshold = std::max<unsigned>(Threshold, PragmaUnrollThreshold);
192 Pass *llvm::createLoopUnrollPass(int Threshold, int Count, int AllowPartial,
194 return new LoopUnroll(Threshold, Count, AllowPartial, Runtime);
309 // completely unroll (subject to the threshold, checked below); otherwise
311 // threshold value.
375 unsigned Threshold, PartialThreshold;
376 selectThresholds(L, HasPragma, UP, Threshold, PartialThreshold);
383 if (Threshold != NoThreshold && UnrolledSize > Threshold) {
385 << " because size: " << UnrolledSize << ">" << Threshold
397 // Reduce count based on the type of unrolling and the threshold values.
420 // the original count which satisfies the threshold limit.