Lines Matching defs:Threshold
80 cl::desc("Threshold for inlining functions with inline hint"));
85 cl::desc("Threshold for inlining cold callsites"));
116 cl::desc("Threshold for inlining functions with cold attribute"));
120 cl::desc("Threshold for hot callsites "));
124 cl::desc("Threshold for locally hot callsites "));
579 int Threshold = 0;
630 /// Update Threshold based on callsite properties such as callee
663 Threshold += *AttrCallThresholdBonus;
788 Threshold -= SingleBBBonus;
799 InstructionCostDetailMap[I].ThresholdBefore = Threshold;
808 InstructionCostDetailMap[I].ThresholdAfter = Threshold;
889 if (Threshold == 0)
980 APInt Threshold(128, PSI->getOrCompHotCountThreshold());
981 Threshold *= Size;
985 if (UpperBoundCycleSavings.uge(Threshold))
991 if (LowerBoundCycleSavings.ult(Threshold))
1019 // subtract the excess bonus, if any, from the Threshold before
1022 Threshold -= VectorBonus;
1024 Threshold -= VectorBonus / 2;
1037 Threshold = *AttrThreshold;
1051 return Cost < std::max(1, Threshold)
1061 if (Cost < Threshold)
1088 // While Threshold depends on commandline options that can take negative
1091 assert(Threshold >= 0);
1095 // Speculatively apply all possible bonuses to Threshold. If cost exceeds
1096 // this Threshold any time, and cost cannot decrease, we can stop processing
1098 Threshold += (SingleBBBonus + VectorBonus);
1112 if (Cost >= Threshold && !ComputeFullInlineCost)
1133 Params(Params), Threshold(Params.DefaultThreshold),
1157 int getThreshold() const { return Threshold; }
1189 int Threshold = 5;
1306 Threshold -= SingleBBBonus;
1331 Threshold -= VectorBonus;
1333 Threshold -= VectorBonus / 2;
1335 set(InlineCostFeatureIndex::threshold, Threshold);
1361 Threshold += TTI.adjustInliningThreshold(&CandidateCall);
1362 Threshold *= TTI.getInliningThresholdMultiplier();
1363 SingleBBBonus = Threshold * SingleBBBonusPercent / 100;
1364 VectorBonus = Threshold * VectorBonusPercent / 100;
1365 Threshold += (SingleBBBonus + VectorBonus);
1924 // If no size growth is allowed for this inlining, set Threshold to 0.
1926 Threshold = 0;
1942 // Various bonus percentages. These are multiplied by Threshold to get the
1968 Threshold = MinIfValid(Threshold, Params.OptMinSizeThreshold);
1976 Threshold = MinIfValid(Threshold, Params.OptSizeThreshold);
1982 Threshold = MaxIfValid(Threshold, Params.HintThreshold);
1999 Threshold = *HotCallSiteThreshold;
2007 Threshold = MinIfValid(Threshold, Params.ColdCallSiteThreshold);
2016 Threshold = MaxIfValid(Threshold, Params.HintThreshold);
2024 Threshold = MinIfValid(Threshold, Params.ColdThreshold);
2029 Threshold += TTI.adjustInliningThreshold(&Call);
2033 Threshold *= TTI.getInliningThresholdMultiplier();
2035 SingleBBBonus = Threshold * SingleBBBonusPercent / 100;
2036 VectorBonus = Threshold * VectorBonusPercent / 100;
2901 DEBUG_PRINT_STAT(Threshold);
3191 InlineParams llvm::getInlineParams(int Threshold) {
3204 Params.DefaultThreshold = Threshold;