This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] speedup timevar pushing/poping
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 30 Mar 2004 00:05:00 -0800
- Subject: Re: [PATCH] speedup timevar pushing/poping
- References: <66A2D635-8208-11D8-99F1-000393A6D2F2@physics.uc.edu>
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