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
This commit is contained in:
Segher Boessenkool 2018-03-05 20:11:54 +01:00 committed by Segher Boessenkool
parent 14710257c1
commit 34b01e681e
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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;