This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Improve x86-64 prologues and epilogues
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Mar 2003 14:59:07 -0800
- Subject: Re: Improve x86-64 prologues and epilogues
- References: <20030318180902.GA613@kam.mff.cuni.cz>
On Tue, Mar 18, 2003 at 07:09:02PM +0100, Jan Hubicka wrote:
> *************** ix86_compute_frame_layout (frame)
> *** 4605,4610 ****
> --- 4611,4649 ----
> frame->nregs = ix86_nsaved_regs ();
> total_size = size;
>
> + if (!optimize_size && !cfun->machine->use_fast_prologue_epilogue_initialized)
> + {
> + int count = frame->nregs;
> +
> + cfun->machine->use_fast_prologue_epilogue_initialized = 1;
This is technically incorrect. You're making the decision
based on the first round of reload. More registers may be
spilled after this.
You're better off doing away with the initialized flag and
checking reload_in_progress.
The rest of it looks reasonable.
r~