[PR99766] Consider relaxed memory associated more with memory instead of special...
authorVladimir Makarov <vmakarov@redhat.com>
Fri, 26 Mar 2021 17:09:24 +0000 (17:09 +0000)
committerVladimir Makarov <vmakarov@redhat.com>
Fri, 26 Mar 2021 17:11:30 +0000 (17:11 +0000)
commit0d37e2d3ead072ba57e03fcb97a041504a22e721
tree01956ec203c173039a8d1838fcd6c724f1db6cab
parent6b8b0c8e243bdc122a9ddd42030275494b1148ff
[PR99766] Consider relaxed memory associated more with memory instead of special memory.

Relaxed memory should be considered more like memory then special memory.

gcc/ChangeLog:

PR target/99766
* ira-costs.c (record_reg_classes): Put case with
CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
* ira.c (ira_setup_alts): Ditto.
* lra-constraints.c (process_alt_operands): Ditto.
* recog.c (asm_operand_ok): Ditto.
* reload.c (find_reloads): Ditto.

gcc/testsuite/ChangeLog:

PR target/99766
* g++.target/aarch64/sve/pr99766.C: New.
gcc/ira-costs.c
gcc/ira.c
gcc/lra-constraints.c
gcc/recog.c
gcc/reload.c
gcc/testsuite/g++.target/aarch64/sve/pr99766.C [new file with mode: 0644]