From 3a43459715e239fb8043bf64b830aaf1a9802180 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Mon, 20 Jan 2020 14:29:40 +0000 Subject: [PATCH] [AArch64] Set jump-align=4 for neoversen1 Testing shows the setting of 32:16 for jump alignment has a significant codesize cost, however it doesn't make a difference in performance. So set jump-align to 4 to get 1.6% codesize improvement. gcc/ * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4. --- gcc/ChangeLog | 4 ++++ gcc/config/aarch64/aarch64.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8db7c816622..31b7305b5f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2020-01-20 Wilco Dijkstra + + * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4. + 2020-01-20 Andrew Pinski PR middle-end/93242 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index c26ac0db942..e40750380cc 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -1132,7 +1132,7 @@ static const struct tune_params neoversen1_tunings = 3, /* issue_rate */ (AARCH64_FUSE_AES_AESMC | AARCH64_FUSE_CMP_BRANCH), /* fusible_ops */ "32:16", /* function_align. */ - "32:16", /* jump_align. */ + "4", /* jump_align. */ "32:16", /* loop_align. */ 2, /* int_reassoc_width. */ 4, /* fp_reassoc_width. */ -- 2.30.2