This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC/RFA?] New estimation of function body size for inlining
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Sun, 29 Jun 2003 23:58:18 +0100 (BST)
- Subject: Re: [RFC/RFA?] New estimation of function body size for inlining
- References: <20030629221541.GC23852@kam.mff.cuni.cz>
On Mon, 30 Jun 2003, Jan Hubicka wrote:
> this patch implements new function to estimate function size.
> Instead of counting number of statements that can be fooled by very
> complex statements in one direction and very many lexical blocks and
> similar noops in the other direction I now do simple recursive walk
> without duplicates and attempt to count everything that looks like
> operation with few special cases dealing with common NOOPs and common
> expensive expressions.
Hopefully this fixes PR 10971 where -std=c99 affected the old statement
counting because of additional scopes in C99....
--
Joseph S. Myers
jsm28@cam.ac.uk