Home | History | Annotate | Download | only in Analysis

Lines Matching full:bonus

275   int Bonus = 0;
279 Bonus -= InlineConstants::ColdccPenalty;
294 Bonus += CountBonusForConstant(I);
299 Bonus -= CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty;
301 return Bonus;
304 // ConstantFunctionBonus - Figure out how much of a bonus we can get for
306 // we may wish to inline from the indirect call bonus providing a limit on
307 // growth. Leave an upper limit of 0 for the bonus - we don't want to penalize
308 // inlining because we decide we don't want to give a bonus for
318 int Bonus = InlineConstants::IndirectCallBonus + getInlineSize(CS, F);
319 return (Bonus > 0) ? 0 : Bonus;
325 unsigned Bonus = 0;
331 Bonus += ConstantFunctionBonus(CallSite(CI), C);
335 Bonus += ConstantFunctionBonus(CallSite(II), C);
363 Bonus += CountBonusForConstant(&Inst);
367 return Bonus;
433 int Bonus = 0;
439 Bonus += InlineConstants::LastCallToStaticBonus;
446 Bonus += InlineConstants::NoreturnPenalty;
448 Bonus += InlineConstants::NoreturnPenalty;
453 Bonus += InlineConstants::ColdccPenalty;
463 // Compute any constant bonus due to inlining we want to give here.
465 Bonus += CountBonusForConstant(FI, cast<Constant>(I));
467 return Bonus;