Lines Matching refs:Weight
677 auto Weight = getEstimatedEdgeWeight({SrcLoopBB, DstLoopBB}); in getMaxEstimatedEdgeWeight() local
679 if (!Weight) in getMaxEstimatedEdgeWeight()
682 if (!MaxWeight || *MaxWeight < *Weight) in getMaxEstimatedEdgeWeight()
683 MaxWeight = Weight; in getMaxEstimatedEdgeWeight()
893 std::optional<uint32_t> Weight; in calcEstimatedHeuristics() local
897 Weight = getEstimatedEdgeWeight(Edge); in calcEstimatedHeuristics()
901 Weight != static_cast<uint32_t>(BlockExecWeight::ZERO)) { in calcEstimatedHeuristics()
903 Weight = std::max( in calcEstimatedHeuristics()
905 Weight.value_or(static_cast<uint32_t>(BlockExecWeight::DEFAULT)) / in calcEstimatedHeuristics()
911 Weight != static_cast<uint32_t>(BlockExecWeight::ZERO)) { in calcEstimatedHeuristics()
913 Weight = std::max( in calcEstimatedHeuristics()
915 Weight.value_or(static_cast<uint32_t>(BlockExecWeight::DEFAULT)) / 2); in calcEstimatedHeuristics()
918 if (Weight) in calcEstimatedHeuristics()
922 Weight.value_or(static_cast<uint32_t>(BlockExecWeight::DEFAULT)); in calcEstimatedHeuristics()