Lines Matching refs:cost
627 /* Compute cost of executing INSN given the dependence LINK on the insn USED.
638 /* Compute cost of executing INSN given the dependence on the insn USED.
649 int cost = INSN_COST (insn);
651 if (cost < 0)
664 cost = insn_default_latency (insn);
665 if (cost < 0)
666 cost = 0;
668 INSN_COST (insn) = cost;
672 /* In this case estimate cost without caring how insn is used. */
674 return cost;
680 cost = 0;
688 cost = 0;
691 cost = (insn_default_latency (insn)
693 if (cost <= 0)
694 cost = 1;
697 cost = insn_latency (insn, used);
701 cost = targetm.sched.adjust_cost_2 (used, (int) dep_type, insn, cost);
706 cost = targetm.sched.adjust_cost (used, link, insn, cost);
709 if (cost < 0)
710 cost = 0;
713 return cost;
1807 int cost;
1848 cost = 0;
1850 cost = state_transition (temp_state, insn);
1853 fprintf (sched_dump, "transition cost = %d\n", cost);
1856 if (cost < 0)
2425 int cost;
2493 cost = 1;
2499 cost = 0;
2503 cost = state_transition (temp_state, insn);
2504 if (cost < 0)
2505 cost = 0;
2506 else if (cost == 0)
2507 cost = 1;
2510 if (cost >= 1)
2512 queue_insn (insn, cost);
2515 advance = cost;
2817 h_i_d[i].cost = -1;
3176 cost. Otherwise, recalculate from scratch. */
3243 fprintf (sched_dump, " into queue with cost=%d\n", delay);