From 34b01e681ea99cfeef9dbb69fbb1f9fb1dc3a088 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 5 Mar 2018 20:11:54 +0100 Subject: [PATCH] rs6000: Don't align tiny loops to 32 bytes for POWER9 For POWER4..POWER8 we align loops of 5..8 instructions to 32 bytes (instead of to 16 bytes) because that executes faster. This is no longer the case on POWER9, so we can just as well only align to 16 bytes. * config/rs6000/rs6000.c (rs6000_loop_align): Don't align tiny loops to 32 bytes when compiling for POWER9. From-SVN: r258260 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d1ef6e850e..5630a84a949 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-03-05 Segher Boessenkool + + * config/rs6000/rs6000.c (rs6000_loop_align): Don't align tiny loops + to 32 bytes when compiling for POWER9. + 2018-03-05 Jakub Jelinek PR target/84564 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d0de4b5224d..5f22b6de5bb 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -5333,8 +5333,7 @@ rs6000_loop_align (rtx label) || rs6000_tune == PROCESSOR_POWER5 || rs6000_tune == PROCESSOR_POWER6 || rs6000_tune == PROCESSOR_POWER7 - || rs6000_tune == PROCESSOR_POWER8 - || rs6000_tune == PROCESSOR_POWER9)) + || rs6000_tune == PROCESSOR_POWER8)) return 5; else return align_loops_log; -- 2.30.2