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]
Other format: [Raw text]

Re: x86_64 prologues tweek


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~


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