This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34940] contained subroutines called only once are not inlined
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2008 11:27:01 -0000
- Subject: [Bug tree-optimization/34940] contained subroutines called only once are not inlined
- References: <bug-34940-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from steven at gcc dot gnu dot org 2008-01-23 11:27 -------
It is not always a win. A function called once on a cold path should not be
inlined for e.g. icache reasons.
For your test case however, CS1 should have been inlined.
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-01-23 11:27:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34940