Lines Matching refs:InlineCost
382 int InlineCost = 0; in getInlineSize() local
397 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].AllocaWeight; in getInlineSize()
403 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].ConstantWeight; in getInlineSize()
409 InlineCost -= (CS.arg_size() * InlineConstants::InstrCost); in getInlineSize()
415 InlineCost += CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty; in getInlineSize()
418 InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost; in getInlineSize()
420 return InlineCost; in getInlineSize()
473 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, in getInlineCost()
478 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, in getInlineCost()
490 return llvm::InlineCost::getNever(); in getInlineCost()
501 return InlineCost::getNever(); in getInlineCost()
508 return InlineCost::getAlways(); in getInlineCost()
527 return InlineCost::getNever(); in getInlineCost()
535 int InlineCost = getInlineSize(CS, Callee) + getInlineBonuses(CS, Callee); in getInlineCost() local
536 return llvm::InlineCost::get(InlineCost); in getInlineCost()
542 InlineCost InlineCostAnalyzer::getSpecializationCost(Function *Callee, in getSpecializationCost()
548 return llvm::InlineCost::getNever(); in getSpecializationCost()
568 return llvm::InlineCost::get(Cost); in getSpecializationCost()