diff options
author | Robin Dapp <rdapp@linux.ibm.com> | 2022-02-03 12:50:04 +0100 |
---|---|---|
committer | Robin Dapp <rdapp@linux.ibm.com> | 2022-08-29 11:15:10 +0200 |
commit | 1930c5d05ceff2173a32f23e5dbd0738460f521e (patch) | |
tree | e04d205c3a2d528bdd10888a37cbc4470ac1e6f2 /gcc/value-range.cc | |
parent | 34895b6606561a36ffded81efee2904feb9c1bfd (diff) | |
download | gcc-1930c5d05ceff2173a32f23e5dbd0738460f521e.zip gcc-1930c5d05ceff2173a32f23e5dbd0738460f521e.tar.gz gcc-1930c5d05ceff2173a32f23e5dbd0738460f521e.tar.bz2 |
s390: Change SET rtx_cost handling.
The IF_THEN_ELSE detection currently prevents us from properly costing
register-register moves which causes the lower-subreg pass to assume that
a VR-VR move is as expensive as two GPR-GPR moves.
This patch adds handling for SETs containing REGs as well as MEMs and is
inspired by the aarch64 implementation.
gcc/ChangeLog:
* config/s390/s390.cc (s390_address_cost): Declare.
(s390_hard_regno_nregs): Declare.
(s390_rtx_costs): Add handling for REG and MEM in SET.
gcc/testsuite/ChangeLog:
* gcc.target/s390/vector/vec-sum-across-no-lower-subreg-1.c: New test.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions