aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9
diff options
context:
space:
mode:
authorJunmo Park <junmoz.park@samsung.com>2015-08-12 15:15:02 (GMT)
committerJunmo Park <junmoz.park@samsung.com>2015-08-22 14:32:15 (GMT)
commitf6a5feaff996764cdc4a318aef9e3747a7907f56 (patch)
treef47d5b49287541fdc592544f50461364bdeddb57 /gcc-4.9
parentadabb586ace96357b1cc9a5da7a482a3fdd8e470 (diff)
downloadtoolchain_gcc-f6a5feaff996764cdc4a318aef9e3747a7907f56.zip
toolchain_gcc-f6a5feaff996764cdc4a318aef9e3747a7907f56.tar.gz
toolchain_gcc-f6a5feaff996764cdc4a318aef9e3747a7907f56.tar.bz2
[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')
-rw-r--r--gcc-4.9/ChangeLog6
-rw-r--r--gcc-4.9/gcc/config/aarch64/aarch64.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc-4.9/ChangeLog b/gcc-4.9/ChangeLog
index 9574f7a..207f2ca 100644
--- a/gcc-4.9/ChangeLog
+++ b/gcc-4.9/ChangeLog
@@ -23,6 +23,12 @@
* Makefile.in: Regenerate.
* configure: Regenerate.
+2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
+
+ PR target/61915
+ * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
+ cost.
+
2014-11-19 Renlin Li <Renlin.Li@arm.com>
PR middle-end/63762
diff --git a/gcc-4.9/gcc/config/aarch64/aarch64.c b/gcc-4.9/gcc/config/aarch64/aarch64.c
index 72d1231..9c4ced4 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. */