Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Cost

438 // calcSpillCost - Return the cost of spilling clearing out PhysReg and
464 // This is a disabled register, add up cost of aliases.
466 unsigned Cost = 0;
473 ++Cost;
480 Cost += I->Dirty ? spillDirty : spillClean;
485 return Cost;
528 unsigned Cost = calcSpillCost(Hint);
529 if (Cost < spillDirty) {
530 if (Cost)
554 unsigned Cost = calcSpillCost(*I);
556 DEBUG(dbgs() << "\tCost: " << Cost << "\n");
558 // Cost is 0 when all aliases are already disabled.
559 if (Cost == 0) {
563 if (Cost < BestCost)
564 BestReg = *I, BestCost = Cost;