This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining again...
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: gcc at gcc dot gnu dot org, Roger Sayle <roger at www dot eyesopen dot com>
- Date: 07 May 2003 21:23:29 +0200
- Subject: Re: Inlining again...
- References: <Pine.LNX.4.44.0305072115240.432-100000@goofy>
Op wo 07-05-2003, om 21:22 schreef Richard Guenther:
> > That's your stmt count: 130 if you repace "some code" with "return;":
> >
> > template <bool f>
> > struct blah {
> > void foo() { if (f) { return; } }
> > };
> >
> > void bar()
> > {
> > blah<false>().foo();
> > }
> >
> > Yes. 130. I can only: ouch.
>
> Ouch. I suppose this wont improve until we get at least, say, DCE at the
> tree level? Dont we have something like that - I remember a patch during
> the last month doing early DCE...
That patch is unrelated. It deals with expanding to RTL which is
exactly what we do _not_ do with inlinable functions. Like I've said
earlier, this is a front end issue.
Greetz
Steven