This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: x86_64 prologues tweek
- 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: Mon, 25 Nov 2002 16:33:36 -0800
- Subject: Re: x86_64 prologues tweek
- References: <20021123233234.GE30049@kam.mff.cuni.cz>
On Sun, Nov 24, 2002 at 12:32:34AM +0100, Jan Hubicka wrote:
> * i386.c (FAST_PROLOGUE_INSN_COUNT): Set to 20.
> (ix86_expand_prologue): Multiply the count by amount of registers to be
> pushed.
Ok.
> ! = !expensive_function_p (frame.nregs ? (frame.nregs - 1) * FAST_PROLOGUE_INSN_COUNT : 0);
Please wrap properly. The easiest way to do this will be to pull
out the conditional to a separate variable. E.g.
int count = frame.nregs;
if (count)
count = (count - 1) * FAST_PROLOGUE_INSN_COUNT;
r~