]> git.ipfire.org Git - thirdparty/gcc.git/commit
s390: Implement TARGET_NOCE_CONVERSION_PROFITABLE_P [PR109549]
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Thu, 23 May 2024 06:43:35 +0000 (08:43 +0200)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Thu, 23 May 2024 06:43:35 +0000 (08:43 +0200)
commit57e04879389f9c0d5d53f316b468ce1bddbab350
tree0af4eacb9351d3312e36bf801a5586ca3748ed2c
parentdbdddc92a3b955fce71af47755c226132559eda2
s390: Implement TARGET_NOCE_CONVERSION_PROFITABLE_P [PR109549]

Consider a NOCE conversion as profitable if there is at least one
conditional move.

gcc/ChangeLog:

PR target/109549
* config/s390/s390.cc (TARGET_NOCE_CONVERSION_PROFITABLE_P):
Define.
(s390_noce_conversion_profitable_p): Implement.

gcc/testsuite/ChangeLog:

* gcc.target/s390/ccor.c: Order of loads are reversed, now, as a
consequence the condition has to be reversed.
gcc/config/s390/s390.cc
gcc/testsuite/gcc.target/s390/ccor.c