Lines Matching refs:Scaled64
118 using Scaled64 = ScaledNumber<uint64_t>; typedef in __anon135b54a50111::SelectOptimizeImpl
122 Scaled64 PredCost;
124 Scaled64 NonPredCost;
244 Scaled64 getTrueOpCost(DenseMap<const Instruction *, CostInfo> &InstCostMap, in getTrueOpCost()
249 : Scaled64::getZero(); in getTrueOpCost()
261 Scaled64::get(*OrCost.getValue()); in getTrueOpCost()
264 return Scaled64::getZero(); in getTrueOpCost()
269 Scaled64
275 : Scaled64::getZero(); in getFalseOpCost()
283 return Scaled64::getZero(); in getFalseOpCost()
354 Scaled64 getMispredictionCost(const SelectLike SI, const Scaled64 CondCost);
357 Scaled64 getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost,
866 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()}, in findProfitableSIGroupsInnerLoops()
867 {Scaled64::getZero(), Scaled64::getZero()}}; in findProfitableSIGroupsInnerLoops()
876 Scaled64 SelectCost = Scaled64::getZero(), BranchCost = Scaled64::getZero(); in findProfitableSIGroupsInnerLoops()
1113 Scaled64 Gain[2] = {LoopCost[0].PredCost - LoopCost[0].NonPredCost, in checkLoopHeuristics()
1119 if (Gain[1] < Scaled64::get(GainCycleThreshold) || in checkLoopHeuristics()
1120 Gain[1] * Scaled64::get(GainRelativeThreshold) < LoopCost[1].PredCost) { in checkLoopHeuristics()
1121 Scaled64 RelativeGain = Scaled64::get(100) * Gain[1] / LoopCost[1].PredCost; in checkLoopHeuristics()
1136 Scaled64 GradientGain = Scaled64::get(100) * (Gain[1] - Gain[0]) / in checkLoopHeuristics()
1138 if (GradientGain < Scaled64::get(GainGradientThreshold)) { in checkLoopHeuristics()
1180 Scaled64 IPredCost = Scaled64::getZero(), in computeLoopCosts()
1181 INonPredCost = Scaled64::getZero(); in computeLoopCosts()
1204 IPredCost += Scaled64::get(*ILatency); in computeLoopCosts()
1205 INonPredCost += Scaled64::get(*ILatency); in computeLoopCosts()
1215 Scaled64 TrueOpCost = SI.getTrueOpCost(InstCostMap, TTI); in computeLoopCosts()
1216 Scaled64 FalseOpCost = SI.getFalseOpCost(InstCostMap, TTI); in computeLoopCosts()
1217 Scaled64 PredictedPathCost = in computeLoopCosts()
1220 Scaled64 CondCost = Scaled64::getZero(); in computeLoopCosts()
1224 Scaled64 MispredictCost = getMispredictionCost(SI, CondCost); in computeLoopCosts()
1263 const Scaled64 CondCost) { in getMispredictionCost()
1277 Scaled64 MispredictCost = in getMispredictionCost()
1278 std::max(Scaled64::get(MispredictPenalty), CondCost) * in getMispredictionCost()
1279 Scaled64::get(MispredictRate); in getMispredictionCost()
1280 MispredictCost /= Scaled64::get(100); in getMispredictionCost()
1288 SelectOptimizeImpl::getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost, in getPredictedPathCost()
1290 Scaled64 PredPathCost; in getPredictedPathCost()
1295 PredPathCost = TrueCost * Scaled64::get(TrueWeight) + in getPredictedPathCost()
1296 FalseCost * Scaled64::get(FalseWeight); in getPredictedPathCost()
1297 PredPathCost /= Scaled64::get(SumWeight); in getPredictedPathCost()
1303 PredPathCost = std::max(TrueCost * Scaled64::get(3) + FalseCost, in getPredictedPathCost()
1304 FalseCost * Scaled64::get(3) + TrueCost); in getPredictedPathCost()
1305 PredPathCost /= Scaled64::get(4); in getPredictedPathCost()