This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [IPA] Inline before other IPA optimizations
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, zadeck at naturalbridge dot com
- Date: Sun, 14 Aug 2005 19:36:40 +0200
- Subject: Re: [IPA] Inline before other IPA optimizations
- References: <20050814135620.GM4870@kam.mff.cuni.cz>
On 8/14/05, Jan Hubicka <jh@suse.cz> wrote:
> Hi,
> this patch makes the long promised (and now finally easy ;) change to
> inline everything during the IPA inline pass instead of deferring it to
> tree_rest_of_compilation. The advantage of this scheme is mainly in the
> fact that other IPA passes don't need to worry about the possibly
> numberous inline clones around cgraph and we also order functions in a
> way so saving is done seldomly instead of usually so we produce fewer
> garbage.
>
> The disadvantage is increase of peak memory usage just after inlining.
> It is about 50% for Gerald's testcase (as the inline-unit-groth suggest
> after all), but don't seems to be as bad as I anticipated.
Uh, oh. How much does it improve if you run some scalar cleanup
passes right after (individual) inlining?
Richard.