arm.c (arm_new_rtx_costs): Return after handling comparisons.
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 11 Nov 2013 13:53:26 +0000 (13:53 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 11 Nov 2013 13:53:26 +0000 (13:53 +0000)
* config/arm/arm.c (arm_new_rtx_costs): Return after handling
comparisons.

From-SVN: r204673

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

index 6c55b69..3d8350e 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * config/arm/arm.c (arm_new_rtx_costs): Return after handling
+       comparisons.
+
 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
index acb1c16..5c53440 100644 (file)
@@ -9967,7 +9967,7 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
          *cost = 0;
          return true;
        }
-      break;
+      return false;
 
     case ABS:
       if (TARGET_HARD_FLOAT && GET_MODE_CLASS (mode) == MODE_FLOAT