This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Sigh. Inlining heuristics.


<<I can easily imagine such a program. e.g. when you inline a 1000 instruction
function and 900 instructions of that are removed during constant
propagation and dead code remove later because the argument input values
are known then. Of course 100 is still a fine default.
>>

Yes, well compiler writers are expert at "imagining" progrags that would
be helped by their pet optimizations, and that is a lot of the reason that
optimizations tend to prove disappointing. What is important is not what you
can imagine, but what actually occurs in real programs significantly often.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]