diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2016-06-30 15:46:14 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco@gcc.gnu.org> | 2016-06-30 15:46:14 +0000 |
commit | 0bc2433858abb64daa41ed85994668d66cbecd71 (patch) | |
tree | 53adc8e6d919fc7273f9526f67922c9fd702595d /gcc | |
parent | 3dfa80718b8ed4d46aaf89b1e8a410130945a793 (diff) | |
download | gcc-0bc2433858abb64daa41ed85994668d66cbecd71.zip gcc-0bc2433858abb64daa41ed85994668d66cbecd71.tar.gz gcc-0bc2433858abb64daa41ed85994668d66cbecd71.tar.bz2 |
This patch sets the branch cost to the same most optimal setting for all Cortex cores...
This patch sets the branch cost to the same most optimal setting for all Cortex
cores, reducing codesize and improving performance due to using more CSEL
instructions. Set the autoprefetcher model in Cortex-A72 to weak like the
others. Enable AES fusion in Cortex-A35. As a result generated code is now
more similar as well as more optimal across Cortex cores.
gcc/
* config/aarch64/aarch64.c (cortexa35_tunings):
Enable AES fusion. Use cortexa57_branch_cost.
(cortexa53_tunings): Use cortexa57_branch_cost.
(cortexa72_tunings): Use cortexa57_branch_cost.
Use AUTOPREFETCHER_WEAK.
(cortexa73_tunings): Use cortexa57_branch_cost.
From-SVN: r237884
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 12 |
2 files changed, 15 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da6956a..88cab98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2016-06-30 Wilco Dijkstra <wdijkstr@arm.com> + + * config/aarch64/aarch64.c (cortexa35_tunings): + Enable AES fusion. Use cortexa57_branch_cost. + (cortexa53_tunings): Use cortexa57_branch_cost. + (cortexa72_tunings): Use cortexa57_branch_cost. + Use AUTOPREFETCHER_WEAK. + (cortexa73_tunings): Use cortexa57_branch_cost. + 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com> James Greenhalgh <james.greenhalgh@arm.com> diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 356cb7e..062899f 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -473,11 +473,11 @@ static const struct tune_params cortexa35_tunings = &generic_addrcost_table, &cortexa53_regmove_cost, &generic_vector_cost, - &generic_branch_cost, + &cortexa57_branch_cost, &generic_approx_modes, 4, /* memmov_cost */ 1, /* issue_rate */ - (AARCH64_FUSE_MOV_MOVK | AARCH64_FUSE_ADRP_ADD + (AARCH64_FUSE_AES_AESMC | AARCH64_FUSE_MOV_MOVK | AARCH64_FUSE_ADRP_ADD | AARCH64_FUSE_MOVK_MOVK | AARCH64_FUSE_ADRP_LDR), /* fusible_ops */ 16, /* function_align. */ 8, /* jump_align. */ @@ -499,7 +499,7 @@ static const struct tune_params cortexa53_tunings = &generic_addrcost_table, &cortexa53_regmove_cost, &generic_vector_cost, - &generic_branch_cost, + &cortexa57_branch_cost, &generic_approx_modes, 4, /* memmov_cost */ 2, /* issue_rate */ @@ -551,7 +551,7 @@ static const struct tune_params cortexa72_tunings = &cortexa57_addrcost_table, &cortexa57_regmove_cost, &cortexa57_vector_cost, - &generic_branch_cost, + &cortexa57_branch_cost, &generic_approx_modes, 4, /* memmov_cost */ 3, /* issue_rate */ @@ -567,7 +567,7 @@ static const struct tune_params cortexa72_tunings = 2, /* min_div_recip_mul_df. */ 0, /* max_case_values. */ 0, /* cache_line_size. */ - tune_params::AUTOPREFETCHER_OFF, /* autoprefetcher_model. */ + tune_params::AUTOPREFETCHER_WEAK, /* autoprefetcher_model. */ (AARCH64_EXTRA_TUNE_NONE) /* tune_flags. */ }; @@ -577,7 +577,7 @@ static const struct tune_params cortexa73_tunings = &cortexa57_addrcost_table, &cortexa57_regmove_cost, &cortexa57_vector_cost, - &generic_branch_cost, + &cortexa57_branch_cost, &generic_approx_modes, 4, /* memmov_cost. */ 2, /* issue_rate. */ |