diff options
author | Stefan Schulze Frielinghaus <stefansf@gcc.gnu.org> | 2025-03-11 08:59:15 +0100 |
---|---|---|
committer | Stefan Schulze Frielinghaus <stefansf@gcc.gnu.org> | 2025-03-11 08:59:15 +0100 |
commit | 229f4f040485c0c05cfb707b30c9b983ed1f95d3 (patch) | |
tree | f4ae6be11ff00ab72fcccdcf5ae0be6557723a66 /gcc/config.gcc | |
parent | c39b0d4faedd432c85ba5c737ebe9d41aad7dca1 (diff) | |
download | gcc-229f4f040485c0c05cfb707b30c9b983ed1f95d3.zip gcc-229f4f040485c0c05cfb707b30c9b983ed1f95d3.tar.gz gcc-229f4f040485c0c05cfb707b30c9b983ed1f95d3.tar.bz2 |
s390: Implement TARGET_INSN_COST [PR115835]
Currently insn_cost() only considers the source part of a SET.
Implement TARGET_INSN_COST in order to also take the destination into
account. This may make a difference in case of a MEM where the address
is a SYMBOL_REF.
Fixes testsuite/gcc.target/s390/section-anchors.c.
gcc/ChangeLog:
PR target/115835
* config/s390/s390.cc (s390_insn_cost): Implement.
(TARGET_INSN_COST): Define.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions