Home | History | Annotate | Download | only in Analysis

Lines Matching defs:InlineCost

1 //===- InlineCost.cpp - Cost analysis for inliner -------------------------===//
14 #include "llvm/Analysis/InlineCost.h"
378 // InlineCost - This value measures how good of an inline candidate this call
382 int InlineCost = 0;
397 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].AllocaWeight;
403 InlineCost -= CalleeFI->ArgumentWeights[ArgNo].ConstantWeight;
409 InlineCost -= (CS.arg_size() * InlineConstants::InstrCost);
415 InlineCost
418 InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost;
420 return InlineCost;
473 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS,
478 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS,
490 return llvm::InlineCost::getNever();
501 return InlineCost::getNever();
508 return InlineCost::getAlways();
527 return InlineCost::getNever();
530 // InlineCost - This value measures how good of an inline candidate this call
535 int InlineCost = getInlineSize(CS, Callee) + getInlineBonuses(CS, Callee);
536 return llvm::InlineCost::get(InlineCost);
542 InlineCost InlineCostAnalyzer::getSpecializationCost(Function *Callee,
548 return llvm::InlineCost::getNever();
568 return llvm::InlineCost::get(Cost);