From 3969c51028bcc4fd5d76d611784b31e86f33ed90 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Wed, 19 Nov 2014 14:40:26 +0000 Subject: [PATCH] [AArch64] Adjust generic move costs 2014-11-19 Wilco Dijkstra PR target/61915 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move cost. From-SVN: r217780 --- gcc/ChangeLog | 6 ++++++ gcc/config/aarch64/aarch64.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c13f13e4a2..45e12cbd160 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-19 Wilco Dijkstra + + PR target/61915 + * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move + cost. + 2014-11-19 Marek Polacek PR sanitizer/63690 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index a53f942ad7f..38321237eb3 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -229,8 +229,10 @@ __extension__ static const struct cpu_regmove_cost generic_regmove_cost = { NAMED_PARAM (GP2GP, 1), - NAMED_PARAM (GP2FP, 2), - NAMED_PARAM (FP2GP, 2), + /* Avoid the use of slow int<->fp moves for spilling by setting + their cost higher than memmov_cost. */ + NAMED_PARAM (GP2FP, 5), + NAMED_PARAM (FP2GP, 5), NAMED_PARAM (FP2FP, 2) }; -- 2.30.2