Lines Matching full:threshold
36 "amdgpu-unroll-threshold-private",
37 cl::desc("Unroll threshold for AMDGPU if private memory used in a loop"),
41 "amdgpu-unroll-threshold-local",
42 cl::desc("Unroll threshold for AMDGPU if local memory used in a loop"),
46 "amdgpu-unroll-threshold-if",
47 cl::desc("Unroll threshold increment for AMDGPU for each if statement inside loop"),
57 cl::desc("Inner loop block size threshold to analyze in unroll for AMDGPU"),
107 UP.Threshold =
108 F.getFnAttributeAsParsedInteger("amdgpu-unroll-threshold", 300);
126 // If this loop has the amdgpu.loop.unroll.threshold metadata we will use the
127 // provided threshold value as the default for Threshold
129 findOptionMDForLoop(L, "amdgpu.loop.unroll.threshold")) {
137 UP.Threshold = MetaThresholdValue->getSExtValue();
138 UP.PartialThreshold = UP.Threshold;
139 ThresholdPrivate = std::min(ThresholdPrivate, UP.Threshold);
140 ThresholdLocal = std::min(ThresholdLocal, UP.Threshold);
161 if (UP.Threshold < MaxBoost && Br->isConditional()) {
168 UP.Threshold += UnrollThresholdIf;
169 LLVM_DEBUG(dbgs() << "Set unroll threshold " << UP.Threshold
172 if (UP.Threshold >= MaxBoost)
184 unsigned Threshold = 0;
186 Threshold = ThresholdPrivate;
188 Threshold = ThresholdLocal;
192 if (UP.Threshold >= Threshold)
242 // threshold. This will give SROA a better chance to eliminate these
250 UP.Threshold = Threshold;
251 LLVM_DEBUG(dbgs() << "Set unroll threshold " << Threshold
254 if (UP.Threshold >= MaxBoost)
1278 unsigned Threshold = adjustInliningThresholdUsingCallee(CB, TLI, this);
1281 // is not inlined. Increase the inline threshold to promote inlining.
1284 Threshold += ArgAllocaCost;
1285 return Threshold;
1302 // bonus given in the threshold (ArgAllocaCost).
1306 // Awkwardly, the ArgAllocaCost bonus is multiplied by threshold-multiplier,
1312 unsigned Threshold = ArgAllocaCost * getInliningThresholdMultiplier();
1318 Threshold += Threshold / 2;
1324 unsigned AllocaThresholdBonus = (Threshold * ArgAllocaSize) / AllocaSize;