[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 2c13f13e4a26200dc5bcdf0a0a2dc01f43fbe7f7..45e12cbd1600c50b12d4ca6432b1e91282033b71 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 a53f942ad7f5d48f36fcb19c091a3a7299e385a0..38321237eb3e4d2ea3e5120b4a5863dea40a807b 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)
 };