[AArch64] Adjust generic move costs
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 19 Nov 2014 14:40:26 +0000 (14:40 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Wed, 19 Nov 2014 14:40:26 +0000 (14:40 +0000)
  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

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 2c13f13..45e12cb 100644 (file)
@@ -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
index a53f942..3832123 100644 (file)
@@ -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)
 };