[AArch64] Simplify aarch64_can_eliminate
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 8 Nov 2017 15:36:34 +0000 (15:36 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Wed, 8 Nov 2017 15:36:34 +0000 (15:36 +0000)
commit6216fd904f46a11fa243195ee303560dc802958e
tree5042e527d2dd7e17df0bf83129d5005d43d2cc8b
parent7040939b9e2cbd084e6dbe015ee6cd2761aacf46
[AArch64] Simplify aarch64_can_eliminate

Simplify aarch64_can_eliminate - if we need a frame pointer, we must
eliminate to HARD_FRAME_POINTER_REGNUM.  Rather than hardcoding all
combinations from the ELIMINABLE_REGS list, just do the correct check.

    gcc/
* config/aarch64/aarch64.c (aarch64_can_eliminate): Simplify logic.

From-SVN: r254534
gcc/ChangeLog
gcc/config/aarch64/aarch64.c