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


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?

zw


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