Lines Matching defs:op_cost

2473   int op_cost, op_latency;
2599 op_cost = m * add_cost[mode];
2600 if (shift_cost[mode][m] < op_cost)
2601 op_cost = shift_cost[mode][m];
2602 new_limit.cost = best_cost.cost - op_cost;
2603 new_limit.latency = best_cost.latency - op_cost;
2606 alg_in->cost.cost += op_cost;
2607 alg_in->cost.latency += op_cost;
2638 op_cost = add_cost[mode];
2639 new_limit.cost = best_cost.cost - op_cost;
2640 new_limit.latency = best_cost.latency - op_cost;
2643 alg_in->cost.cost += op_cost;
2644 alg_in->cost.latency += op_cost;
2658 op_cost = add_cost[mode];
2659 new_limit.cost = best_cost.cost - op_cost;
2660 new_limit.latency = best_cost.latency - op_cost;
2663 alg_in->cost.cost += op_cost;
2664 alg_in->cost.latency += op_cost;
2703 op_cost = add_cost[mode] + shift_cost[mode][m];
2704 if (shiftadd_cost[mode][m] < op_cost)
2706 op_cost = shiftadd_cost[mode][m];
2707 op_latency = op_cost;
2712 new_limit.cost = best_cost.cost - op_cost;
2716 alg_in->cost.cost += op_cost;
2718 if (alg_in->cost.latency < op_cost)
2719 alg_in->cost.latency = op_cost;
2742 op_cost = add_cost[mode] + shift_cost[mode][m];
2743 if (shiftsub_cost[mode][m] < op_cost)
2745 op_cost = shiftsub_cost[mode][m];
2746 op_latency = op_cost;
2751 new_limit.cost = best_cost.cost - op_cost;
2755 alg_in->cost.cost += op_cost;
2757 if (alg_in->cost.latency < op_cost)
2758 alg_in->cost.latency = op_cost;
2783 op_cost = shiftadd_cost[mode][m];
2784 new_limit.cost = best_cost.cost - op_cost;
2785 new_limit.latency = best_cost.latency - op_cost;
2788 alg_in->cost.cost += op_cost;
2789 alg_in->cost.latency += op_cost;
2808 op_cost = shiftsub_cost[mode][m];
2809 new_limit.cost = best_cost.cost - op_cost;
2810 new_limit.latency = best_cost.latency - op_cost;
2813 alg_in->cost.cost += op_cost;
2814 alg_in->cost.latency += op_cost;
2888 int op_cost;
2897 op_cost = 2 * GET_MODE_BITSIZE (mode) * add_cost[mode];
2898 if (mult_cost > op_cost)
2899 mult_cost = op_cost;
2910 op_cost = neg_cost[mode];
2913 limit.cost = alg->cost.cost - op_cost;
2914 limit.latency = alg->cost.latency - op_cost;
2918 limit.cost = mult_cost - op_cost;
2919 limit.latency = mult_cost - op_cost;
2923 alg2.cost.cost += op_cost;
2924 alg2.cost.latency += op_cost;
2930 op_cost = add_cost[mode];
2933 limit.cost = alg->cost.cost - op_cost;
2934 limit.latency = alg->cost.latency - op_cost;
2938 limit.cost = mult_cost - op_cost;
2939 limit.latency = mult_cost - op_cost;
2943 alg2.cost.cost += op_cost;
2944 alg2.cost.latency += op_cost;