summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2019-08-13 10:39:22 +0000
committerWilco Dijkstra <wilco@gcc.gnu.org>2019-08-13 10:39:22 +0000
commit4e55aefa3ee19167a41892e4920a3e8c520aee42 (patch)
tree3cc3785b88dfd6cf4f14338421bddae8fa44f522
parentd5c949950c8941e945b08e82181b52a208fa3af4 (diff)
downloadgcc-4e55aefa3ee19167a41892e4920a3e8c520aee42.tar.gz
[AArch64] Increase default function alignment
With -mcpu=generic the function alignment is currently 8, however almost all supported cores prefer 16 or higher, so increase the default to 16:12. This gives ~0.2% performance increase on SPECINT2017, while codesize is 0.12% larger. gcc/ * config/aarch64/aarch64.c (generic_tunings): Set function alignment to 16:12. From-SVN: r274374
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/aarch64/aarch64.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3e05090eba1..004d270bab7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
+
+ * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
+ 16:12.
+
2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/driver-msp430.c (msp430_set_driver_var): New.
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 291cbb2696d..af4d8afaa5a 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -712,7 +712,7 @@ static const struct tune_params generic_tunings =
4, /* memmov_cost */
2, /* issue_rate */
(AARCH64_FUSE_AES_AESMC), /* fusible_ops */
- "8", /* function_align. */
+ "16:12", /* function_align. */
"4", /* jump_align. */
"8", /* loop_align. */
2, /* int_reassoc_width. */