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 47d6a63..06995dd 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 abfa7b2..2cae7ed 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))))