[AArch64] Use gen_frame_mem for callee-saves
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 7 Aug 2017 14:17:09 +0000 (14:17 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Mon, 7 Aug 2017 14:17:09 +0000 (14:17 +0000)
commit30079dde47ad224613340f220df061cb4a5829b7
tree333699e8c18004a1e3fad9eeb9131e94c5b2d731
parent6f1a16cbe84edaa9551d21d8b4db5830b6fed5dd
[AArch64] Use gen_frame_mem for callee-saves

The frame code uses a mixture of gen_rtx_MEM and gen_frame_mem for
callee-saves.  Callee-saves never alias with local variables, so using
gen_frame_mem is best.

    gcc/
* config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
Use gen_frame_mem.
(aarch64_pop_regs): Likewise.
(aarch64_gen_load_pair): Likewise.
(aarch64_save_callee_saves): Likewise.
(aarch64_restore_callee_saves): Likewise.

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