[PATCH][RFC] Optimize type-punning union accesses to VIEW_CONVERT_EXPRs

Richard Guenther rguenther@suse.de
Fri Feb 29 12:41:00 GMT 2008


On Thu, 28 Feb 2008, Daniel Berlin wrote:

> On 2/28/08, Richard Guenther <rguenther@suse.de> wrote:
> >
> > Does this make sense?
> > Richard.
> 
> Looks like the right approach to me.
> You may want to go further and eliminate storing of fields entirely,
> and just changing the tuples for reference ops to be <access size,
> access offset, access type> for everything, not just unions.

Sure - I'll leave that to pull off after we get the MEM_REF stuff
(or decide to not do that).  I am experimenting with re-structuring
the fixup by keeping some extra dummy ssa vars with value-numbers
(but that seems to complicate things somehow...).

Richard.



More information about the Gcc-patches mailing list