Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Metrics

80         // basically just a form of loop peeling, and our metrics aren't useful
244 Metrics.analyzeFunction(F, TD);
249 if (Metrics.NumRets==1)
250 --Metrics.NumInsts;
256 ArgumentWeights.push_back(ArgInfo(Metrics.CountCodeReductionForConstant(I),
257 Metrics.CountCodeReductionForAlloca(I)));
263 return (Metrics.callsSetJmp || Metrics.isRecursive ||
264 Metrics.containsIndirectBr);
285 if (CalleeFI->Metrics.NumBlocks == 0)
299 Bonus -= CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty;
375 if (CalleeFI->Metrics.NumBlocks == 0)
415 InlineCost += CalleeFI->Metrics
418 InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost;
428 if (CalleeFI->Metrics.NumBlocks == 0)
496 if (CalleeFI->Metrics.NumBlocks == 0)
510 if (CalleeFI->Metrics.usesDynamicAlloca) {
515 if (CallerFI.Metrics.NumBlocks == 0) {
526 if (!CallerFI.Metrics.usesDynamicAlloca)
554 if (CalleeFI->Metrics.NumBlocks == 0)
560 Cost += CalleeFI->Metrics.NumInsts * InlineConstants::InstrCost;
580 if (CalleeFI.Metrics.NumBlocks == 0)
585 if (CalleeFI.Metrics.NumBlocks == 1)
590 if (CalleeFI.Metrics.NumVectorInsts > CalleeFI.Metrics.NumInsts/2)
592 else if (CalleeFI.Metrics.NumVectorInsts > CalleeFI.Metrics.NumInsts/10)
601 CodeMetrics &CallerMetrics = CachedFunctionInfo[Caller].Metrics;
616 CodeMetrics &CalleeMetrics = CachedFunctionInfo[Callee].Metrics;
618 // If we don't have metrics for the callee, don't recalculate them just to