Inlining again...

Steven Bosscher s.bosscher@student.tudelft.nl
Wed May 7 19:24:00 GMT 2003


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




More information about the Gcc mailing list