------- Comment #7 from hubicka at ucw dot cz 2009-06-30 12:46 ------- Subject: Re: [4.5 regression] 0.5% code size regression caused by r147852
> The problem is that early inliner allows to increase code size estimate by > inlining single function by up to 12 instructions. This is higher than on > pretty-ipa branch still, since we are not that good on early optimizing yet > and > some C++ benchmarks (tramp/botan/boost) degrade when reduced to 7 as used by > tramp3d. In tramp3d it is mostly caused by dead loops in constructors, and I ^^^^^^ pretty-ipa :) > hope that merging IPA-SRA and CD-DCE improvements will care this on all three > benchmarks. At -O2 early inliner needs to be somewhat speculative since it > don't know the function profiles yet. It however seems stupid to allow code > size growth at -Os in general. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40436