S/390: Don't emit prefetch instructions for clrmem
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 31 Jul 2018 15:41:59 +0000 (15:41 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 31 Jul 2018 15:41:59 +0000 (15:41 +0000)
commit4de3a1e16a86d23dec7cea6e5f7f710cf5769e71
tree99ad4974f0a81db70ba385e29054114204ce9541
parent77b4604223e6e40ad6f6918a7cd63380fcc931ce
S/390: Don't emit prefetch instructions for clrmem

gcc/ChangeLog:

2018-07-31  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.c (s390_expand_setmem): Make the unrolling to
depend on whether prefetch instructions will be emitted or not.
Use TARGET_SETMEM_PFD for checking whether prefetch instructions
will be emitted or not.
* config/s390/s390.h (TARGET_SETMEM_PREFETCH_DISTANCE)
(TARGET_SETMEM_PFD): New macros.

gcc/testsuite/ChangeLog:

2018-07-31  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/memset-1.c: Improve testcase.

From-SVN: r263165
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/config/s390/s390.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/memset-1.c