From: Segher Boessenkool Date: Mon, 5 Mar 2018 19:11:54 +0000 (+0100) Subject: rs6000: Don't align tiny loops to 32 bytes for POWER9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34b01e681ea99cfeef9dbb69fbb1f9fb1dc3a088;p=gcc.git 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 --- 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;