rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG when modes are tieable.
authorMark Dettinger <dettinge@de.ibm.com>
Mon, 17 Jan 2005 14:34:22 +0000 (14:34 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Mon, 17 Jan 2005 14:34:22 +0000 (14:34 +0000)
2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>

* rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
when modes are tieable.

From-SVN: r93763

gcc/ChangeLog
gcc/rtlanal.c

index 47d6a63be079da9e9cdd964f7186e59f60e3db8d..06995dd0dee754bf0f64c9b7369dc4d87a201ca4 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
+
+       * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
+       when modes are tieable.
+
 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
 
        * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
index abfa7b2bccd9a271d7661d9d5e2f16a06ef77bed..2cae7edace9abe937d2bbab86b593956f2241b32 100644 (file)
@@ -3270,6 +3270,7 @@ rtx_cost (rtx x, enum rtx_code outer_code ATTRIBUTE_UNUSED)
       return 0;
 
     case SUBREG:
+      total = 0;
       /* If we can't tie these modes, make this expensive.  The larger
         the mode, the more expensive it is.  */
       if (! MODES_TIEABLE_P (GET_MODE (x), GET_MODE (SUBREG_REG (x))))