This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to improve x86 prologue (Version 2)
- To: John Wehle <john at feith dot com>
- Subject: Re: Patch to improve x86 prologue (Version 2)
- From: Richard Henderson <rth at cygnus dot com>
- Date: Thu, 15 Apr 1999 16:27:30 -0700
- Cc: egcs-patches at egcs dot cygnus dot com
- References: <199904150332.XAA16542@jwlab.FEITH.COM>
On Wed, Apr 14, 1999 at 11:32:42PM -0400, John Wehle wrote:
> `current_function_is_leaf' must be set before reload and must not be
> changed once set since it effects register elimination and offsets.
> The existing `leaf_function' variable is set after reload and really
> means that the function only uses leaf registers.
I'm trying to think of a reason one might want to know
current_function_only_uses_leaf_regs && !current_function_is_leaf.
I'd had it in my head to set current_function_is_leaf before
reload as you do in your patch, and then after reload do
#ifdef LEAF_REGISTERS
if (current_function_is_leaf && ! only_leaf_regs_used ())
current_function_is_leaf = 0;
#endif
Perhaps separating the two meanings is cleaner... Any one else
have an opinion?
r~