Lines Matching defs:Cost
1 //===- InlineCost.cpp - Cost analysis for inliner -------------------------===//
55 int Cost;
139 : TD(TD), TTI(TTI), F(Callee), Threshold(Threshold), Cost(0),
152 int getCost() { return Cost; }
198 Cost += CostIt->second;
744 Cost += CS.arg_size() * InlineConstants::InstrCost;
749 Cost += InlineConstants::CallPenalty;
761 Cost += CS.arg_size() * InlineConstants::InstrCost;
778 Cost -= std::max(0, InlineConstants::IndirectCallThreshold - CA.getCost());
821 Cost += InlineConstants::InstrCost;
843 if (Cost > (Threshold + VectorBonus))
936 Cost -= 2 * NumStores * InlineConstants::InstrCost;
940 Cost -= InlineConstants::InstrCost;
949 Cost += InlineConstants::LastCallToStaticBonus;
965 Cost += InlineConstants::ColdccPenalty;
968 if (Cost > Threshold)
1031 if (Cost > (Threshold + VectorBonus))
1059 Cost += InlineConstants::InstrCost;
1122 return Cost < Threshold;
1142 INITIALIZE_PASS_BEGIN(InlineCostAnalysis, "inline-cost", "Inline Cost Analysis",
1145 INITIALIZE_PASS_END(InlineCostAnalysis, "inline-cost", "Inline Cost Analysis",