On 13 Nov 2005 21:36:02 -0800, Ian Lance Taylor <ian@airs.com> wrote: > Jan Hubicka <[EMAIL PROTECTED]> writes: > > > in testsuite there are few reduced testcases where unit growth (an > > inliner limit - inliner is allowed to inline as long as the unit don't > > grow by given percentage, set to 50%) is too strict. > > Out of curiousity, have you considered permitting inlining larger > functions if one or more of the actual arguments are constants, on the > theory that sometimes constant folding will bring the size back down > again?
Yes, we thought about that. But, no - how would you estimate the effect of one constant parameter out of two for an estimated function size N? There would be as much bad as good effects, if not more, if we try to do this. On ipa branch with ssa inlining, inlining after ipcp will automatically do this, though. Richard.