Lines Matching refs:Cost
156 /// Cost of evicting interference.
482 unsigned Cost = TRI->getCostPerUse(PhysReg);
485 if (!Cost)
488 DEBUG(dbgs() << PrintReg(PhysReg, TRI) << " is available at cost " << Cost
490 unsigned CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost);
577 EvictionCost Cost;
609 Cost.BrokenHints += 10;
614 Cost.BrokenHints += BreaksHint;
615 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight);
617 if (!(Cost < MaxCost))
633 MaxCost = Cost;
754 /// SpillPlacement and return the static cost of this split in Cost, assuming
758 BlockFrequency &Cost) {
804 Cost = StaticCost;
935 BlockFrequency Cost;
936 if (!addSplitConstraints(Cand.Intf, Cost)) {
961 BlockFrequency Cost = 0;
967 Cost += SpillPlacer->getBlockFrequency(Number);
971 Cost += SpillPlacer->getBlockFrequency(Number);
973 return Cost;
1189 DEBUG(dbgs() << "Cost of isolating all blocks = " << BestCost << '\n');
1218 BlockFrequency Cost;
1219 if (!addSplitConstraints(Cand.Intf, Cost)) {
1223 DEBUG(dbgs() << PrintReg(PhysReg, TRI) << "\tstatic = " << Cost);
1224 if (Cost >= BestCost) {
1244 Cost += calcGlobalSplitCost(Cand);
1246 dbgs() << ", total = " << Cost << " with bundles";
1252 if (Cost < BestCost) {
1254 BestCost = Cost;