Lines Matching refs:cost

77 	/* The cost of a symbol expression is lower for on-stack symbols */
413 int cost;
415 cost = expand_expression(expr->left);
416 cost += expand_expression(expr->right);
421 return cost + 1;
428 int cost, rcost;
431 cost = expand_expression(left);
473 return cost + BRANCH_COST + rcost;
478 int cost;
480 cost = expand_expression(expr->left);
481 cost += expand_expression(expr->right);
491 return cost;
520 int cost;
522 cost = expand_expression(left);
523 cost += expand_expression(right);
539 return cost + 1;
547 int cost, cond_cost;
556 cost = expand_expression(valt);
561 return cost;
564 cost = expand_expression(valt);
565 cost += expand_expression(valf);
567 if (cost < SELECT_COST) {
569 cost -= BRANCH_COST - 1;
572 return cost + cond_cost + BRANCH_COST;
826 int cost;
846 cost = expand_expression(expr->unop);
852 return cost + 1;
857 int cost = 0;
861 cost += expand_expression(expr);
863 return cost;
868 int cost;
871 cost = expand_expression(target);
878 return cost + 1;
885 static int expand_symbol_call(struct expression *expr, int cost)
908 cost = expand_expression(expr);
910 return cost;
915 return ctype->op->expand(expr, cost);
918 return cost + 1;
925 int cost;
929 cost = expand_arguments(expr->args);
936 return expand_symbol_call(expr, cost);
943 int cost = 0;
947 cost += expand_expression(expr);
949 return cost;
1138 int cost = expand_statement(stmt);
1142 return cost;
1248 int cost = 0;
1251 cost += expand_expression(op->expr);
1255 cost += expand_expression(op->expr);
1258 return cost;
1274 int cost, statements;
1280 cost = expand_statement(last);
1285 cost += expand_statement(s);
1291 return cost;