This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to improve x86 prologue (Version 2)


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]