diff options
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r-- | gcc/targhooks.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c index e0fd7d15cb3..3fbd7190e83 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -93,7 +93,7 @@ void default_external_libcall (rtx fun ATTRIBUTE_UNUSED) { #ifdef ASM_OUTPUT_EXTERNAL_LIBCALL - ASM_OUTPUT_EXTERNAL_LIBCALL(asm_out_file, fun); + ASM_OUTPUT_EXTERNAL_LIBCALL (asm_out_file, fun); #endif } @@ -1057,20 +1057,17 @@ default_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind, unsigned *cost = (unsigned *) data; unsigned retval = 0; - if (flag_vect_cost_model) - { - tree vectype = stmt_info ? stmt_vectype (stmt_info) : NULL_TREE; - int stmt_cost = default_builtin_vectorization_cost (kind, vectype, + tree vectype = stmt_info ? stmt_vectype (stmt_info) : NULL_TREE; + int stmt_cost = default_builtin_vectorization_cost (kind, vectype, misalign); - /* Statements in an inner loop relative to the loop being - vectorized are weighted more heavily. The value here is - arbitrary and could potentially be improved with analysis. */ - if (where == vect_body && stmt_info && stmt_in_inner_loop_p (stmt_info)) - count *= 50; /* FIXME. */ - - retval = (unsigned) (count * stmt_cost); - cost[where] += retval; - } + /* Statements in an inner loop relative to the loop being + vectorized are weighted more heavily. The value here is + arbitrary and could potentially be improved with analysis. */ + if (where == vect_body && stmt_info && stmt_in_inner_loop_p (stmt_info)) + count *= 50; /* FIXME. */ + + retval = (unsigned) (count * stmt_cost); + cost[where] += retval; return retval; } @@ -1430,7 +1427,7 @@ default_debug_unwind_info (void) mode for registers used in apply_builtin_return and apply_builtin_arg. */ enum machine_mode -default_get_reg_raw_mode(int regno) +default_get_reg_raw_mode (int regno) { return reg_raw_mode[regno]; } |