Lines Matching defs:LoopCost
344 CostInfo *LoopCost);
866 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()},
868 if (!computeLoopCosts(L, SIGroups, InstCostMap, LoopCost) ||
869 !checkLoopHeuristics(L, LoopCost)) {
1095 const CostInfo LoopCost[2]) {
1105 if (LoopCost[0].NonPredCost > LoopCost[0].PredCost ||
1106 LoopCost[1].NonPredCost >= LoopCost[1].PredCost) {
1113 Scaled64 Gain[2] = {LoopCost[0].PredCost - LoopCost[0].NonPredCost,
1114 LoopCost[1].PredCost - LoopCost[1].NonPredCost};
1120 Gain[1] * Scaled64::get(GainRelativeThreshold) < LoopCost[1].PredCost) {
1121 Scaled64 RelativeGain = Scaled64::get(100) * Gain[1] / LoopCost[1].PredCost;
1137 (LoopCost[1].PredCost - LoopCost[0].PredCost);
1165 DenseMap<const Instruction *, CostInfo> &InstCostMap, CostInfo *LoopCost) {
1174 CostInfo &MaxCost = LoopCost[Iter];