Home | History | Annotate | Download | only in IPA

Lines Matching refs:Threshold

55   int Threshold;
144 Function &Callee, int Threshold)
145 : DL(DL), TTI(TTI), F(Callee), Threshold(Threshold), Cost(0),
158 int getThreshold() { return Threshold; }
780 // out. Pretend to inline the function, with a custom threshold.
881 /// aborts early if the threshold has been exceeded or an impossible to inline
929 // Check if we've past the threshold so we don't spin in huge basic
931 if (Cost > (Threshold + VectorBonus))
979 /// viable. It computes the cost and adjusts the threshold based on numerous
981 /// is below the computed threshold, then inlining was forcibly disabled by
988 // threshold by 50% until we pass the single-BB phase.
990 int SingleBBBonus = Threshold / 2;
991 Threshold += SingleBBBonus;
993 // Perform some tweaks to the cost and threshold based on the direct
997 // threshold, and we'll lower it if the % of vector instructions gets too
1001 FiftyPercentVectorBonus = Threshold;
1002 TenPercentVectorBonus = Threshold / 2;
1046 Threshold = 1;
1048 Threshold = 1;
1056 if (Cost > Threshold)
1105 // crossing our threshold, we use a small-size optimized SetVector.
1112 // Bail out the moment we cross the threshold. This means we'll under-count
1114 if (Cost > (Threshold + VectorBonus))
1130 // Analyze the cost of this block. If we blow through the threshold, this
1180 // Take off the bonus we applied to the threshold.
1181 Threshold -= SingleBBBonus;
1192 Threshold += VectorBonus;
1194 return Cost < Threshold;
1211 DEBUG_PRINT_STAT(Threshold);
1240 InlineCost InlineCostAnalysis::getInlineCost(CallSite CS, int Threshold) {
1241 return getInlineCost(CS, CS.getCalledFunction(), Threshold);
1261 int Threshold) {
1293 CallAnalyzer CA(Callee->getDataLayout(), *TTI, *Callee, Threshold);