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] Fix PR middle-end/18776


On Sun, Dec 19, 2004 at 10:11:59PM +0100, Eric Botcazou wrote:
> So we're already making unnecessary subregs from SF to SI and then SI to SF.
> Then get_best_mode returns DImode instead of SImode for the field because, on 
> SLOW_BYTE_ACCESS platforms, it returns the largest, not the smallest, 
> suitable mode.  So we're operating in DImode for the extraction.

Huh.  I wouldn't have guessed about this sort of interaction.

I think you can skip the "natural mode" check and let MEM go
through the simplify_gen_subreg path all the time.  

Ok with that change.


r~


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