[RFC/patch] Callgraph based inlining heuristics

Richard Guenther rguenth@tat.physik.uni-tuebingen.de
Mon Jun 23 17:09:00 GMT 2003


On Mon, 23 Jun 2003, Jan Hubicka wrote:

> > >and possibly tree-optimize the to-be inlined function (with its current
> > >parameters) before applying any heuristics. Of course this will be
> > >
> > In fact, the weird thing about unit-at-a-time is that it changes the
> > current behavior of tree-ssa in a peculiar way.  With -finline-functions
> > when not in unit-at-a-time mode, each function is first tree-optimized
> > and then deferred and later inlined.  With unit-at-a-time, the functions
> > are first deferred, then inlined, and tree-optimizing them is the final
> > step.  So _without_ unit-at-a-time, we inline optimized function bodies,
> > but _with_ unit-at-a-time we do not!
>
> Why not hook tree-SSA work into the unit-at-a-time driver?  The code is
> supposed to drive how the compilation works and when the code is
> optimized.

Btw. - are you currently maintaining an explicit callgraph, so we can
stick notes to its edges?

Just thinking about how to re-invent leafify for unit-at-a-time ;)

Richard.



More information about the Gcc mailing list