This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Fix -O3
- To: dan at www dot cgsoftware dot com
- Subject: Re: C++ PATCH: Fix -O3
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 03 May 2001 22:27:58 -0700
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20010503214817Z.mitchell@codesourcery.com><Pine.LNX.4.33.0105040052380.12980-100000@www.cgsoftware.com>
If the function we are considering inlining is too large, don't inline it
If the function we are considering inlining would make the number of
inlined insns over the course of entire compilation too large, don't
inline it.
I agree that this would be wrong, but I don't think it behaves this
way. There's no global data here.
The inline_data structure is reset at the beginning of
the inlining pass for each function.
You'll have to show an example.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com