aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorMark Dettinger <dettinge@de.ibm.com>2005-01-17 14:34:22 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2005-01-17 14:34:22 +0000
commitedb8116590f8811fd2f83f5144cbe3a9d0b6b3e8 (patch)
tree8f3d58df63ee02ef1ad334d2da05a959296e3a24 /gcc/rtlanal.c
parent658acbb2879a50a76ef85954d942788053aeb1a1 (diff)
downloadgcc-edb8116590f8811fd2f83f5144cbe3a9d0b6b3e8.zip
gcc-edb8116590f8811fd2f83f5144cbe3a9d0b6b3e8.tar.gz
gcc-edb8116590f8811fd2f83f5144cbe3a9d0b6b3e8.tar.bz2
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
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index abfa7b2..2cae7ed 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))))