This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug tree-optimization/57218] [4.8/4.9 Regression] Excessive inlining even at -Os


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57218

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Yep, it is just heuristic here.  We may get more cureful at -Os (i.e. not so
optimistic about the optimization oppurtunities), but last time I played with
this it actually resulted in code size increase at Mozilla and -Os.

LLVM is doing kind of oposite heuristic tracking when function gets address of
local variable as a parameter and anticipate SRA then. I suppose I can give
this a try even though it will miss all the optimization of dynamically
allocated objects...


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