Lines Matching refs:cost
482 /* Returns estimate on cost of computing SEQ. */
487 unsigned cost = 0;
494 cost += rtx_cost (set, SET);
496 cost++;
499 return cost;
506 unsigned target_small_cost; /* The cost for register when there is a free one. */
507 unsigned target_pres_cost; /* The cost for register when there are not too many
509 unsigned target_spill_cost; /* The cost for register when we need to spill. */
547 /* Calculates cost for having SIZE new loop global variables. REGS_USED is the
555 unsigned cost = 0;
558 cost += target_small_cost * size;
560 cost += target_pres_cost * size;
563 cost += target_pres_cost * size;
564 cost += target_spill_cost * n_uses * (regs_needed - target_avail_regs) / regs_needed;
567 return cost;