summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2018-03-05 19:11:54 +0000
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2018-03-05 19:11:54 +0000
commit521876a4898112b4657e0b4c19e78018dbd03525 (patch)
tree5d2029591a80ce6bcba264391fab859fb72d4e85
parent51bfbc8e06e3eee999c70edfdec0aa38258b0f5d (diff)
downloadgcc-521876a4898112b4657e0b4c19e78018dbd03525.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258260 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c3
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 <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 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;