]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/arm/arm.c (arm_rtx_costs_1): Don't special case for
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2010 13:15:25 +0000 (13:15 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2010 13:15:25 +0000 (13:15 +0000)
Thumb-2 in the MINUS case.

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

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

index 46703abeece468d82b2eb07078f2a926cbf40a80..486b3cf2f6e97878e433676d6d3c1b2269f5222c 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
+
+       * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
+       Thumb-2 in the MINUS case.
+
 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
 
        * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
index e44e94946fbeddeb981f7ad637f4c6b6642dd79c..7de0197d33fd3fa072b5e0f787f13156f4ee7d64 100644 (file)
@@ -6377,23 +6377,6 @@ arm_rtx_costs_1 (rtx x, enum rtx_code outer, int* total, bool speed)
       return true;
 
     case MINUS:
-      if (TARGET_THUMB2)
-       {
-         if (GET_MODE_CLASS (mode) == MODE_FLOAT)
-           {
-             if (TARGET_HARD_FLOAT && (mode == SFmode || mode == DFmode))
-               *total = COSTS_N_INSNS (1);
-             else
-               *total = COSTS_N_INSNS (20);
-           }
-         else
-           *total = COSTS_N_INSNS (ARM_NUM_REGS (mode));
-         /* Thumb2 does not have RSB, so all arguments must be
-            registers (subtracting a constant is canonicalized as
-            addition of the negated constant).  */
-         return false;
-       }
-
       if (mode == DImode)
        {
          *total = COSTS_N_INSNS (ARM_NUM_REGS (mode));