[RFC/patch] Callgraph based inlining heuristics

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


On Mon, 23 Jun 2003, Jan Hubicka wrote:

> > On Mon, 23 Jun 2003, Jan Hubicka wrote:
> >
> > > > Btw. - are you currently maintaining an explicit callgraph, so we can
> > > > stick notes to its edges?
> > > Yes.
> >
> > So in principle we can walk "down" the cfg of a leaf function marking all
> > edges as to be inlined?
>
> This has the transitivity problem.  If your leaf function A calls B that
> calls C, you mark flag "inline C into B" that may not be what you want
> in other places you call B.

Ah - so the CFG "shares" edges, in this case we want to unshare these
edges. Is such possible with the current infrastructure?

Richard.



More information about the Gcc mailing list