diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2014-11-19 14:40:26 +0000 |
---|---|---|
committer | Jiong Wang <jiwang@gcc.gnu.org> | 2014-11-19 14:40:26 +0000 |
commit | 3969c51028bcc4fd5d76d611784b31e86f33ed90 (patch) | |
tree | d12163c0842e97969ad0b96d777f324cf9ac28a6 /gcc | |
parent | be60a120fa9bad338512635b0e71c63c4272b2fe (diff) | |
download | gcc-3969c51028bcc4fd5d76d611784b31e86f33ed90.zip gcc-3969c51028bcc4fd5d76d611784b31e86f33ed90.tar.gz gcc-3969c51028bcc4fd5d76d611784b31e86f33ed90.tar.bz2 |
[AArch64] Adjust generic move costs
2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
PR target/61915
* config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move cost.
From-SVN: r217780
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c13f13..45e12cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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 Marek Polacek <polacek@redhat.com> PR sanitizer/63690 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index a53f942..3832123 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) }; |