diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2018-03-05 20:11:54 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2018-03-05 20:11:54 +0100 |
commit | 34b01e681ea99cfeef9dbb69fbb1f9fb1dc3a088 (patch) | |
tree | 5d2029591a80ce6bcba264391fab859fb72d4e85 /gcc | |
parent | 14710257c19ff60d7c111d41a94f3c3f48ba8d84 (diff) | |
download | gcc-34b01e681ea99cfeef9dbb69fbb1f9fb1dc3a088.zip gcc-34b01e681ea99cfeef9dbb69fbb1f9fb1dc3a088.tar.gz gcc-34b01e681ea99cfeef9dbb69fbb1f9fb1dc3a088.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d1ef6e..5630a84 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-03-05 Segher Boessenkool <segher@kernel.crashing.org> + + * config/rs6000/rs6000.c (rs6000_loop_align): Don't align tiny loops + to 32 bytes when compiling for POWER9. + 2018-03-05 Jakub Jelinek <jakub@redhat.com> PR target/84564 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d0de4b5..5f22b6d 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; |