Lines Matching defs:Scaled64
118 using Scaled64 = ScaledNumber<uint64_t>;
122 Scaled64 PredCost;
124 Scaled64 NonPredCost;
189 Scaled64 getOpCostOnBranch(
197 : Scaled64::getZero();
199 return Scaled64::getZero();
209 auto TotalCost = Scaled64::get(*Cost.getValue());
295 Scaled64 getMispredictionCost(const SelectLike SI, const Scaled64 CondCost);
298 Scaled64 getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost,
969 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()},
970 {Scaled64::getZero(), Scaled64::getZero()}};
979 Scaled64 SelectCost = Scaled64::getZero(), BranchCost = Scaled64::getZero();
1229 Scaled64 Gain[2] = {LoopCost[0].PredCost - LoopCost[0].NonPredCost,
1235 if (Gain[1] < Scaled64::get(GainCycleThreshold) ||
1236 Gain[1] * Scaled64::get(GainRelativeThreshold) < LoopCost[1].PredCost) {
1237 Scaled64 RelativeGain = Scaled64::get(100) * Gain[1] / LoopCost[1].PredCost;
1252 Scaled64 GradientGain = Scaled64::get(100) * (Gain[1] - Gain[0]) /
1254 if (GradientGain < Scaled64::get(GainGradientThreshold)) {
1297 Scaled64 IPredCost = Scaled64::getZero(),
1298 INonPredCost = Scaled64::getZero();
1321 IPredCost += Scaled64::get(*ILatency);
1322 INonPredCost += Scaled64::get(*ILatency);
1333 Scaled64 TrueOpCost = SI.getOpCostOnBranch(true, InstCostMap, TTI);
1334 Scaled64 FalseOpCost = SI.getOpCostOnBranch(false, InstCostMap, TTI);
1335 Scaled64 PredictedPathCost =
1338 Scaled64 CondCost = Scaled64::getZero();
1342 Scaled64 MispredictCost = getMispredictionCost(SI, CondCost);
1390 const Scaled64 CondCost) {
1404 Scaled64 MispredictCost =
1405 std::max(Scaled64::get(MispredictPenalty), CondCost) *
1406 Scaled64::get(MispredictRate);
1407 MispredictCost /= Scaled64::get(100);
1415 SelectOptimizeImpl::getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost,
1417 Scaled64 PredPathCost;
1422 PredPathCost = TrueCost * Scaled64::get(TrueWeight) +
1423 FalseCost * Scaled64::get(FalseWeight);
1424 PredPathCost /= Scaled64::get(SumWeight);
1430 PredPathCost = std::max(TrueCost * Scaled64::get(3) + FalseCost,
1431 FalseCost * Scaled64::get(3) + TrueCost);
1432 PredPathCost /= Scaled64::get(4);