Searched refs:InstrCost (Results 1 – 7 of 7) sorted by relevance
1021 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitCmpInst()1100 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitLoad()1112 LoadEliminationCost += InlineConstants::InstrCost; in visitLoad()1124 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitStore()1228 Cost += 3 * InlineConstants::InstrCost; in visitCallSite()1258 Cost += CS.arg_size() * InlineConstants::InstrCost; in visitCallSite()1277 Cost += CS.arg_size() * InlineConstants::InstrCost; in visitCallSite()1428 int CostUpperBound = INT_MAX - InlineConstants::InstrCost - 1; in visitSwitchInst()1436 (int64_t)SI.getNumCases() * InlineConstants::InstrCost + Cost); in visitSwitchInst()1450 int64_t JTCost = (int64_t)JumpTableSize * InlineConstants::InstrCost + in visitSwitchInst()[all …]
160 Reduction += InlineConstants::InstrCost*Instrs*(NumSucc-1)/NumSucc; in CountCodeReductionForConstant()186 Reduction += InlineConstants::InstrCost; in CountCodeReductionForConstant()207 Reduction += InlineConstants::InstrCost; in CountCodeReductionForAlloca()409 InlineCost -= (CS.arg_size() * InlineConstants::InstrCost); in getInlineSize()418 InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost; in getInlineSize()560 Cost += CalleeFI->Metrics.NumInsts * InlineConstants::InstrCost; in getSpecializationCost()
720 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitCmpInst()790 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitLoad()805 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitStore()906 Cost += 3 * InlineConstants::InstrCost; in visitCallSite()930 Cost += CS.arg_size() * InlineConstants::InstrCost; in visitCallSite()947 Cost += CS.arg_size() * InlineConstants::InstrCost; in visitCallSite()1012 Cost += (SuccessorBlocks.size() - 1) * InlineConstants::InstrCost; in visitSwitchInst()1124 Cost += InlineConstants::InstrCost; in analyzeBlock()1247 Cost -= 2 * NumStores * InlineConstants::InstrCost; in analyzeCall()1251 Cost -= InlineConstants::InstrCost; in analyzeCall()
31 const int InstrCost = 5; variable
44 const int InstrCost = 5; variable
36 const int InstrCost = 5; variable
873 InlineCost += (SI->getNumCases() + 1) * InlineConstants::InstrCost; in computeBBInlineCost()876 InlineCost += InlineConstants::InstrCost; in computeBBInlineCost()902 2 * InlineConstants::InstrCost * Cloner.OutlinedFunctions.size(); in computeOutliningCosts()