From: Andrew Pinski Date: Thu, 4 Aug 2016 16:00:24 +0000 (+0000) Subject: aarch64.c (thunderx_vector_cost): New variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3f2032729e60c1d991c18ef56ec863322fe58ca;p=gcc.git aarch64.c (thunderx_vector_cost): New variable. 2016-08-04 Andrew Pinski * config/aarch64/aarch64.c (thunderx_vector_cost): New variable. (thunderx_tunings): Use thunderx_vector_cost instead of generic_vector_cost. From-SVN: r239135 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97e6d68444b..d0bd7dd2291 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-08-04 Andrew Pinski + + * config/aarch64/aarch64.c (thunderx_vector_cost): New variable. + (thunderx_tunings): Use thunderx_vector_cost instead of + generic_vector_cost. + 2016-08-04 Martin Liska * gcov.c (main): Fix GNU coding style. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index f161bff83ec..2129a5de765 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -376,6 +376,24 @@ static const struct cpu_vector_cost generic_vector_cost = 1 /* cond_not_taken_branch_cost */ }; +/* ThunderX costs for vector insn classes. */ +static const struct cpu_vector_cost thunderx_vector_cost = +{ + 1, /* scalar_stmt_cost */ + 3, /* scalar_load_cost */ + 1, /* scalar_store_cost */ + 4, /* vec_stmt_cost */ + 4, /* vec_permute_cost */ + 2, /* vec_to_scalar_cost */ + 2, /* scalar_to_vec_cost */ + 3, /* vec_align_load_cost */ + 10, /* vec_unalign_load_cost */ + 10, /* vec_unalign_store_cost */ + 1, /* vec_store_cost */ + 3, /* cond_taken_branch_cost */ + 3 /* cond_not_taken_branch_cost */ +}; + /* Generic costs for vector insn classes. */ static const struct cpu_vector_cost cortexa57_vector_cost = { @@ -677,7 +695,7 @@ static const struct tune_params thunderx_tunings = &thunderx_extra_costs, &generic_addrcost_table, &thunderx_regmove_cost, - &generic_vector_cost, + &thunderx_vector_cost, &generic_branch_cost, &generic_approx_modes, 6, /* memmov_cost */