Lines Matching refs:Bonus
275 int Bonus = 0; in getSpecializationBonus() local
279 Bonus -= InlineConstants::ColdccPenalty; in getSpecializationBonus()
294 Bonus += CountBonusForConstant(I); in getSpecializationBonus()
299 Bonus -= CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty; in getSpecializationBonus()
301 return Bonus; in getSpecializationBonus()
318 int Bonus = InlineConstants::IndirectCallBonus + getInlineSize(CS, F); in ConstantFunctionBonus() local
319 return (Bonus > 0) ? 0 : Bonus; in ConstantFunctionBonus()
325 unsigned Bonus = 0; in CountBonusForConstant() local
331 Bonus += ConstantFunctionBonus(CallSite(CI), C); in CountBonusForConstant()
335 Bonus += ConstantFunctionBonus(CallSite(II), C); in CountBonusForConstant()
363 Bonus += CountBonusForConstant(&Inst); in CountBonusForConstant()
367 return Bonus; in CountBonusForConstant()
433 int Bonus = 0; in getInlineBonuses() local
439 Bonus += InlineConstants::LastCallToStaticBonus; in getInlineBonuses()
446 Bonus += InlineConstants::NoreturnPenalty; in getInlineBonuses()
448 Bonus += InlineConstants::NoreturnPenalty; in getInlineBonuses()
453 Bonus += InlineConstants::ColdccPenalty; in getInlineBonuses()
465 Bonus += CountBonusForConstant(FI, cast<Constant>(I)); in getInlineBonuses()
467 return Bonus; in getInlineBonuses()