C compile time
Jan Hubicka
jh@suse.cz
Thu Jun 19 17:08:00 GMT 2003
>
> > Why do we want inline before gimplifing?
>
> We might want to do that to do C++-specific optimizations.
>
> Jason, Jeff, and I talked about this some at the conference; it's not
> clear what the right answer is. Some C++-specific optimizations
> (virtual call elimination is a canonical example) really want flow
> graphs and inlining, constant propagation, and dead code elimination to
> have happenned, but still want some C++-specific bits lying around.
I think I remember the discussion.
In the case of virtual call ellimination I believe the only way is to
expose virtual calls to gimple in some generic way. It seems to be too
much effort to do constant propagation and dead code ellimination on
non-gimplified trees. There probably should be some virtual call
expression in gimple that gets elliminated in the later passes...
Honza
>
> --
> Mark Mitchell
> CodeSourcery, LLC
> mark@codesourcery.com
>
More information about the Gcc
mailing list