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

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
This commit is contained in:
Mark Dettinger 2005-01-17 14:34:22 +00:00 committed by Ulrich Weigand
parent 658acbb287
commit edb8116590
2 changed files with 6 additions and 0 deletions

View 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

View 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))))