------- Comment #12 from rguenther at suse dot de 2009-07-29 08:12 ------- Subject: Re: Function object abstraction penalty with inline functions.
On Tue, 28 Jul 2009, jamborm at gcc dot gnu dot org wrote: > ------- Comment #8 from jamborm at gcc dot gnu dot org 2009-07-28 21:33 > ------- > I can confirm that if we schedule pass_ccp right after pass_sra_early, > g gets inlined. Moreover, if we schedule one more pass_forwprop right > afterwards, even the testcase for PR 3713, comment #12 gets optimized > as it should :-) > > So, like with PR 3713, we either have to schedule ccp or add some > specific pattern matching to the inlining preparation phase. I guess > that people will find running one more ccp and fwprop unacceptable and > so some pattern matching will have to be done anyway for the other PR > (and we already do some awkward stuff like that for indirect member > pointer calls). Perhaps we can match both, this one would be very > easy. (Or is scheduling the two extra passes an option?) Not really. Or maybe it is ... at least scheduling FRE is still on the list of possible things todo (can you check if that fixes 3713 as well?) Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40874