diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2005-01-11 21:56:01 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2005-01-11 21:56:01 +0000 |
commit | f351bfedf45d984166cd1d84978300564cda876e (patch) | |
tree | ab79c64ba9b51e95a4cb0265e13a68b36082f7cf /gcc/regrename.c | |
parent | eb701deb655a1ae74c35f2719d33c701544c7ccd (diff) | |
download | gcc-f351bfedf45d984166cd1d84978300564cda876e.zip gcc-f351bfedf45d984166cd1d84978300564cda876e.tar.gz gcc-f351bfedf45d984166cd1d84978300564cda876e.tar.bz2 |
* regrename.c (kill_value): Handle subreg's that won't simplify.
From-SVN: r93200
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r-- | gcc/regrename.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c index 35f17a4..4b3860c 100644 --- a/gcc/regrename.c +++ b/gcc/regrename.c @@ -1104,14 +1104,15 @@ kill_value_regno (unsigned int regno, unsigned int nregs, static void kill_value (rtx x, struct value_data *vd) { - /* SUBREGS are supposed to have been eliminated by now. But some - ports, e.g. i386 sse, use them to smuggle vector type information - through to instruction selection. Each such SUBREG should simplify, - so if we get a NULL we've done something wrong elsewhere. */ + rtx orig_rtx = x; if (GET_CODE (x) == SUBREG) - x = simplify_subreg (GET_MODE (x), SUBREG_REG (x), - GET_MODE (SUBREG_REG (x)), SUBREG_BYTE (x)); + { + x = simplify_subreg (GET_MODE (x), SUBREG_REG (x), + GET_MODE (SUBREG_REG (x)), SUBREG_BYTE (x)); + if (x == NULL_RTX) + x = SUBREG_REG (orig_rtx); + } if (REG_P (x)) { unsigned int regno = REGNO (x); |