Lines Matching defs:Cost
121 cl::desc("Cost for first time use of callee-saved register."),
439 uint8_t Cost = RegCosts[PhysReg];
442 if (!Cost)
446 << (unsigned)Cost << '\n');
447 MCRegister CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost, FixedRegisters);
598 /// SpillPlacement and return the static cost of this split in Cost, assuming
602 BlockFrequency &Cost) {
664 Cost = StaticCost;
821 BlockFrequency Cost;
822 if (!addSplitConstraints(Cand.Intf, Cost)) {
850 BlockFrequency Cost = BlockFrequency(0);
855 Cost += SpillPlacer->getBlockFrequency(Number);
859 Cost += SpillPlacer->getBlockFrequency(Number);
861 return Cost;
1079 LLVM_DEBUG(dbgs() << "Cost of isolating all blocks = "
1125 BlockFrequency Cost;
1126 if (!addSplitConstraints(Cand.Intf, Cost)) {
1131 << "\tstatic = " << printBlockFreq(*MBFI, Cost));
1132 if (Cost >= BestCost) {
1155 Cost += calcGlobalSplitCost(Cand, Order);
1157 dbgs() << ", total = " << printBlockFreq(*MBFI, Cost) << " with bundles";
1162 if (Cost < BestCost) {
1164 BestCost = Cost;
1245 BlockFrequency Cost = BlockFrequency(0);
1266 Cost += MBFI->getBlockFreq(Instr.getParent());
1271 Cost *= Threshold;
1272 if (Cost == BlockFrequency(0))
1278 calculateRegionSplitCostAroundReg(Hint, Order, Cost, NumCands, BestCand);
2267 BlockFrequency Cost = BlockFrequency(0);
2270 Cost += Info.Freq;
2272 return Cost;
2336 LLVM_DEBUG(dbgs() << "Old Cost: " << printBlockFreq(*MBFI, OldCopiesCost)
2337 << "\nNew Cost: "