This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch: kill_value: handle subregs that won't simplify


On Tue, Jan 11, 2005 at 01:58:11PM -0400, Aldy Hernandez wrote:
>     /* 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 look inside the original register.  */
>   
>     if (GET_CODE (x) == SUBREG)
> !     {
> !       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);

This is ok, except that the comment is now totally wrong.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]