From: Mark Dettinger Date: Mon, 17 Jan 2005 14:34:22 +0000 (+0000) Subject: rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG when modes are tieable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edb8116590f8811fd2f83f5144cbe3a9d0b6b3e8;p=gcc.git rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG when modes are tieable. 2005-01-17 Mark Dettinger * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG when modes are tieable. From-SVN: r93763 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 47d6a63be07..06995dd0dee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-01-17 Mark Dettinger + + * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG + when modes are tieable. + 2005-01-17 Ranjit Mathew * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index abfa7b2bccd..2cae7edace9 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -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))))