OSDN Git Service

PR rtl-optimization/40956
authormkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jul 2010 19:46:26 +0000 (19:46 +0000)
committermkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jul 2010 19:46:26 +0000 (19:46 +0000)
* config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162596 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index 0deef9c..9a28043 100644 (file)
@@ -1,5 +1,11 @@
 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
 
+       PR rtl-optimization/40956
+       * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
+       constants.
+
+2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
        PR target/42495
        PR middle-end/42574
        * config/arm/arm.c (legitimize_pic_address): Use
index 1146418..9f00416 100644 (file)
@@ -7013,7 +7013,7 @@ thumb1_size_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer)
       if (outer == SET)
         {
           if ((unsigned HOST_WIDE_INT) INTVAL (x) < 256)
-            return 0;
+            return COSTS_N_INSNS (1);
          /* See split "TARGET_THUMB1 && satisfies_constraint_J".  */
          if (INTVAL (x) >= -255 && INTVAL (x) <= -1)
             return COSTS_N_INSNS (2);