Lines Matching defs:Cost
403 auto &Cost = *CostIter;
404 if (Cost.IsCounted)
409 Cost.IsCounted = true;
414 assert(Cost.IsFree && "Loop PHIs shouldn't be evaluated as they "
430 if (!Cost.IsFree) {
710 static unsigned getFullUnrollBoostingFactor(const EstimatedUnrollCost &Cost,
712 if (Cost.RolledDynamicCost >= std::numeric_limits<unsigned>::max() / 100)
714 else if (Cost.UnrolledCost != 0)
716 return std::min(100 * Cost.RolledDynamicCost / Cost.UnrolledCost,
828 if (Optional<EstimatedUnrollCost> Cost = analyzeLoopUnrollCost(
832 getFullUnrollBoostingFactor(*Cost, UP.MaxPercentThresholdBoost);
833 if (Cost->UnrolledCost < UP.Threshold * Boost / 100) {