This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/57218] [4.8/4.9 Regression] Excessive inlining even at -Os
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 May 2013 10:49:53 +0000
- Subject: [Bug tree-optimization/57218] [4.8/4.9 Regression] Excessive inlining even at -Os
- Auto-submitted: auto-generated
- References: <bug-57218-4 at http dot gcc dot gnu dot org/bugzilla/>
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...