aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/config/aarch64/aarch64.c
diff options
context:
space:
mode:
authorJunmo Park <junmoz.park@samsung.com>2015-08-13 00:15:02 +0900
committerJunmo Park <junmoz.park@samsung.com>2015-08-22 23:32:15 +0900
commitf6a5feaff996764cdc4a318aef9e3747a7907f56 (patch)
treef47d5b49287541fdc592544f50461364bdeddb57 /gcc-4.9/gcc/config/aarch64/aarch64.c
parentadabb586ace96357b1cc9a5da7a482a3fdd8e470 (diff)
downloadtoolchain_gcc-f6a5feaff996764cdc4a318aef9e3747a7907f56.tar.gz
toolchain_gcc-f6a5feaff996764cdc4a318aef9e3747a7907f56.tar.bz2
toolchain_gcc-f6a5feaff996764cdc4a318aef9e3747a7907f56.zip
[4.9] Adjust generic move costs for aarch64. Backport from trunk
2014-11-19 Wilco Dijkstra <wdijkstr@arm.com> PR target/61915 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move cost. Change-Id: Ifaa0c2d1a72955e42f3882c68d1e52acf5a790e7 Signed-off-by: Junmo Park <junmoz.park@samsung.com>
Diffstat (limited to 'gcc-4.9/gcc/config/aarch64/aarch64.c')
-rw-r--r--gcc-4.9/gcc/config/aarch64/aarch64.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/config/aarch64/aarch64.c b/gcc-4.9/gcc/config/aarch64/aarch64.c
index 72d1231ec..9c4ced486 100644
--- a/gcc-4.9/gcc/config/aarch64/aarch64.c
+++ b/gcc-4.9/gcc/config/aarch64/aarch64.c
@@ -184,8 +184,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),
/* We currently do not provide direct support for TFmode Q->Q move.
Therefore we need to raise the cost above 2 in order to have
reload handle the situation. */