Lines Matching refs:Scaled64
118 using Scaled64 = ScaledNumber<uint64_t>; typedef in __anonf7d98fdb0111::SelectOptimizeImpl
122 Scaled64 PredCost;
124 Scaled64 NonPredCost;
217 Scaled64 getTrueOpCost(DenseMap<const Instruction *, CostInfo> &InstCostMap, in getTrueOpCost()
222 : Scaled64::getZero(); in getTrueOpCost()
234 Scaled64::get(*OrCost.getValue()); in getTrueOpCost()
237 return Scaled64::getZero(); in getTrueOpCost()
242 Scaled64
248 : Scaled64::getZero(); in getFalseOpCost()
256 return Scaled64::getZero(); in getFalseOpCost()
327 Scaled64 getMispredictionCost(const SelectLike SI, const Scaled64 CondCost);
330 Scaled64 getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost,
813 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()}, in findProfitableSIGroupsInnerLoops()
814 {Scaled64::getZero(), Scaled64::getZero()}}; in findProfitableSIGroupsInnerLoops()
823 Scaled64 SelectCost = Scaled64::getZero(), BranchCost = Scaled64::getZero(); in findProfitableSIGroupsInnerLoops()
1060 Scaled64 Gain[2] = {LoopCost[0].PredCost - LoopCost[0].NonPredCost, in checkLoopHeuristics()
1066 if (Gain[1] < Scaled64::get(GainCycleThreshold) || in checkLoopHeuristics()
1067 Gain[1] * Scaled64::get(GainRelativeThreshold) < LoopCost[1].PredCost) { in checkLoopHeuristics()
1068 Scaled64 RelativeGain = Scaled64::get(100) * Gain[1] / LoopCost[1].PredCost; in checkLoopHeuristics()
1083 Scaled64 GradientGain = Scaled64::get(100) * (Gain[1] - Gain[0]) / in checkLoopHeuristics()
1085 if (GradientGain < Scaled64::get(GainGradientThreshold)) { in checkLoopHeuristics()
1127 Scaled64 IPredCost = Scaled64::getZero(), in computeLoopCosts()
1128 INonPredCost = Scaled64::getZero(); in computeLoopCosts()
1151 IPredCost += Scaled64::get(*ILatency); in computeLoopCosts()
1152 INonPredCost += Scaled64::get(*ILatency); in computeLoopCosts()
1162 Scaled64 TrueOpCost = SI.getTrueOpCost(InstCostMap, TTI); in computeLoopCosts()
1163 Scaled64 FalseOpCost = SI.getFalseOpCost(InstCostMap, TTI); in computeLoopCosts()
1164 Scaled64 PredictedPathCost = in computeLoopCosts()
1167 Scaled64 CondCost = Scaled64::getZero(); in computeLoopCosts()
1171 Scaled64 MispredictCost = getMispredictionCost(SI, CondCost); in computeLoopCosts()
1210 const Scaled64 CondCost) { in getMispredictionCost()
1224 Scaled64 MispredictCost = in getMispredictionCost()
1225 std::max(Scaled64::get(MispredictPenalty), CondCost) * in getMispredictionCost()
1226 Scaled64::get(MispredictRate); in getMispredictionCost()
1227 MispredictCost /= Scaled64::get(100); in getMispredictionCost()
1235 SelectOptimizeImpl::getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost, in getPredictedPathCost()
1237 Scaled64 PredPathCost; in getPredictedPathCost()
1242 PredPathCost = TrueCost * Scaled64::get(TrueWeight) + in getPredictedPathCost()
1243 FalseCost * Scaled64::get(FalseWeight); in getPredictedPathCost()
1244 PredPathCost /= Scaled64::get(SumWeight); in getPredictedPathCost()
1250 PredPathCost = std::max(TrueCost * Scaled64::get(3) + FalseCost, in getPredictedPathCost()
1251 FalseCost * Scaled64::get(3) + TrueCost); in getPredictedPathCost()
1252 PredPathCost /= Scaled64::get(4); in getPredictedPathCost()