From: aldyh Date: Tue, 11 Jan 2005 21:56:01 +0000 (+0000) Subject: * regrename.c (kill_value): Handle subreg's that won't simplify. X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=8ade52a4795c658c4ddc098c81a6d41c15e9a06d;p=pf3gnuchains%2Fgcc-fork.git * regrename.c (kill_value): Handle subreg's that won't simplify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93200 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d57a3b059eb..1ce03958e30 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-01-11 Aldy Hernandez + + * regrename.c (kill_value): Handle subreg's that won't simplify. + 2005-01-11 Richard Henderson PR target/13366 diff --git a/gcc/regrename.c b/gcc/regrename.c index 35f17a4d1d2..4b3860c647c 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);