This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sigh. Inlining heuristics.
- To: aoliva at redhat dot com, torvalds at transmeta dot com
- Subject: Re: Sigh. Inlining heuristics.
- From: dewar at gnat dot com
- Date: Tue, 10 Jul 2001 23:23:31 -0400 (EDT)
- Cc: dan at cgsoftware dot com, dewar at gnat dot com, gcc at gcc dot gnu dot org,mark at codesourcery dot com
<<The way gcc currently generates code, you'll often get _worse_ code from
inlining, because it often adds register pressure when gcc decides to keep
stuff live for long stretches. Very noticeable on x86 with the few
registers - you can get into stack slot reload hell, causing much worse
code generation than if you didn't inline.
>>
That exactly corresponds to our experience with GNAT on the x86.