Lines Matching refs:Scaled64

136   using Scaled64 = ScaledNumber<uint64_t>;  typedef in __anon6edd6fd50111::SelectOptimize
140 Scaled64 PredCost;
142 Scaled64 NonPredCost;
205 Scaled64 getMispredictionCost(const SelectInst *SI, const Scaled64 CondCost);
208 Scaled64 getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost,
571 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()}, in findProfitableSIGroupsInnerLoops()
572 {Scaled64::getZero(), Scaled64::getZero()}}; in findProfitableSIGroupsInnerLoops()
581 Scaled64 SelectCost = Scaled64::getZero(), BranchCost = Scaled64::getZero(); in findProfitableSIGroupsInnerLoops()
784 Scaled64 Gain[2] = {LoopCost[0].PredCost - LoopCost[0].NonPredCost, in checkLoopHeuristics()
790 if (Gain[1] < Scaled64::get(GainCycleThreshold) || in checkLoopHeuristics()
791 Gain[1] * Scaled64::get(GainRelativeThreshold) < LoopCost[1].PredCost) { in checkLoopHeuristics()
792 Scaled64 RelativeGain = Scaled64::get(100) * Gain[1] / LoopCost[1].PredCost; in checkLoopHeuristics()
807 Scaled64 GradientGain = Scaled64::get(100) * (Gain[1] - Gain[0]) / in checkLoopHeuristics()
809 if (GradientGain < Scaled64::get(GainGradientThreshold)) { in checkLoopHeuristics()
849 Scaled64 IPredCost = Scaled64::getZero(), in computeLoopCosts()
850 INonPredCost = Scaled64::getZero(); in computeLoopCosts()
873 IPredCost += Scaled64::get(ILatency.value()); in computeLoopCosts()
874 INonPredCost += Scaled64::get(ILatency.value()); in computeLoopCosts()
885 Scaled64 TrueOpCost = Scaled64::getZero(), in computeLoopCosts()
886 FalseOpCost = Scaled64::getZero(); in computeLoopCosts()
893 Scaled64 PredictedPathCost = in computeLoopCosts()
896 Scaled64 CondCost = Scaled64::getZero(); in computeLoopCosts()
900 Scaled64 MispredictCost = getMispredictionCost(SI, CondCost); in computeLoopCosts()
933 const Scaled64 CondCost) { in getMispredictionCost()
947 Scaled64 MispredictCost = in getMispredictionCost()
948 std::max(Scaled64::get(MispredictPenalty), CondCost) * in getMispredictionCost()
949 Scaled64::get(MispredictRate); in getMispredictionCost()
950 MispredictCost /= Scaled64::get(100); in getMispredictionCost()
958 SelectOptimize::getPredictedPathCost(Scaled64 TrueCost, Scaled64 FalseCost, in getPredictedPathCost()
960 Scaled64 PredPathCost; in getPredictedPathCost()
965 PredPathCost = TrueCost * Scaled64::get(TrueWeight) + in getPredictedPathCost()
966 FalseCost * Scaled64::get(FalseWeight); in getPredictedPathCost()
967 PredPathCost /= Scaled64::get(SumWeight); in getPredictedPathCost()
973 PredPathCost = std::max(TrueCost * Scaled64::get(3) + FalseCost, in getPredictedPathCost()
974 FalseCost * Scaled64::get(3) + TrueCost); in getPredictedPathCost()
975 PredPathCost /= Scaled64::get(4); in getPredictedPathCost()