This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30908] -Os inlines functions that are called more than once (optimization regression)
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Feb 2007 12:33:39 -0000
- Subject: [Bug c/30908] -Os inlines functions that are called more than once (optimization regression)
- References: <bug-30908-11199@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-02-21 12:33 -------
This is not a bug with inlining but at most with the cost function(s). Use
-fdump-ipa-inline to follow the reasoning:
Deciding on inlining. Starting with 10 insns.
Inlining always_inline functions:
Deciding on smaller functions:
Deciding on functions called once:
Inlined 2 calls, eliminated 1 functions, 10 insns turned to 10 insns.
so it believes code size is unchanged by inlining the function twice and
removing the now unneeded out-of-line copy.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30908