Lines Matching refs:Cost

643   unsigned Cost = TRI->getCostPerUse(PhysReg);  in tryAssign()  local
646 if (!Cost) in tryAssign()
649 DEBUG(dbgs() << PrintReg(PhysReg, TRI) << " is available at cost " << Cost in tryAssign()
651 unsigned CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost); in tryAssign()
742 EvictionCost Cost; in canEvictInterference() local
774 Cost.BrokenHints += 10; in canEvictInterference()
779 Cost.BrokenHints += BreaksHint; in canEvictInterference()
780 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight); in canEvictInterference()
782 if (!(Cost < MaxCost)) in canEvictInterference()
798 MaxCost = Cost; in canEvictInterference()
933 BlockFrequency &Cost) { in addSplitConstraints() argument
979 Cost = StaticCost; in addSplitConstraints()
1108 BlockFrequency Cost; in calcCompactRegion() local
1109 if (!addSplitConstraints(Cand.Intf, Cost)) { in calcCompactRegion()
1134 BlockFrequency Cost = 0; in calcSpillCost() local
1140 Cost += SpillPlacer->getBlockFrequency(Number); in calcSpillCost()
1144 Cost += SpillPlacer->getBlockFrequency(Number); in calcSpillCost()
1146 return Cost; in calcSpillCost()
1410 BlockFrequency Cost; in calculateRegionSplitCost() local
1411 if (!addSplitConstraints(Cand.Intf, Cost)) { in calculateRegionSplitCost()
1416 MBFI->printBlockFreq(dbgs(), Cost)); in calculateRegionSplitCost()
1417 if (Cost >= BestCost) { in calculateRegionSplitCost()
1437 Cost += calcGlobalSplitCost(Cand); in calculateRegionSplitCost()
1439 dbgs() << ", total = "; MBFI->printBlockFreq(dbgs(), Cost) in calculateRegionSplitCost()
1446 if (Cost < BestCost) { in calculateRegionSplitCost()
1448 BestCost = Cost; in calculateRegionSplitCost()
2333 BlockFrequency Cost = 0; in getBrokenHintFreq() local
2336 Cost += Info.Freq; in getBrokenHintFreq()
2338 return Cost; in getBrokenHintFreq()