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: [PATCH] speedup timevar pushing/poping



On Mar 30, 2004, at 03:05, Zack Weinberg wrote:


Andrew Pinski <pinskia@physics.uc.edu> writes:

	* timevar.c (timevar_enable): Change from
	static.
	(timevar_push): Rename to ...
	(timevar_push_1): this and remove the
	enabled check.
	(timevar_pop): Rename to ...
	(timevar_pop_1): this and remove the
	enabled check.
	* timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
	(timevar_pop): New macro.
	(timevar_push): New macro.
	(timevar_enable): Declare.

This is probably OK, but could you post a compiler speed and binary size comparison?

Okay I did some speed and size comparison on i686 (because my PPC laptop's battery ran out and I had forgot to take my power supply to school today).

Here is the results.
test					before			after		percent
Speed, PR8361 -O3		57.27s			57.19		.1%
cc1 size				11278673			11287701		.09%
cc1plus				14245041			14258105		.08%

So it is small speed win on i686 (but I know it is more than that
on my laptop) while it is slight size increase.

Thanks,
Andrew Pinski


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