[ARC] Use TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 30 Nov 2017 14:41:49 +0000 (15:41 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Thu, 30 Nov 2017 14:41:49 +0000 (15:41 +0100)
commit31e72f4f37b9ed02cd5e28a30c7c4b46b96ac913
tree94f57267b8c30942a3250e1ee99deb3db573c34f
parente47b37ca827cd694e17b8688205cb889751b528d
[ARC] Use TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV.

Sometimes the memory equivalent is not valid due to a large offset.
For example replacing the ap register with its fp/sp-equivalent during
LRA step. To solve this we introduced TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV.

gcc/
2017-08-08  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_cannot_substitute_mem_equiv_p): New function.
(TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.

gcc/testsuite
2017-08-08  Claudiu Zissulescu  <claziss@synopsys.com>

* gcc.target/arc/lra-1.c: New test.

From-SVN: r255273
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/lra-1.c [new file with mode: 0644]