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: fix rtl-opt/15289, part 2


On Wed, Dec 01, 2004 at 02:13:21PM -0500, Richard Kenner wrote:
> ! 	  if (MEM_P (op0))
>   	    op0 = adjust_address (op0, fieldmode, offset);
> + 	  else
> + 	    op0 = simplify_gen_subreg (fieldmode, op0, GET_MODE (op0),
> + 				       byte_offset);
> 
> Is this test and the adjust_address call really needed?  Won't
> simplify_gen_subreg do the right thing in all cases here?

I dunno.  The bit computations at the beginning of the function distinguish
between MEM and REG, so I can't be certain that byte_offset == offset.


r~


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