This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove timevar_get ()
Andrew Pinski <pinskia@physics.uc.edu> writes:
> > This is unrelated to your current patch series, but currently the
> > first thing timevar_push/pop/start/stop do is check the global
> > variable timevar_enable, and if it's false, they return. It would be
> > more efficient if this check happened in their callers. To do that,
> > timevar_enable needs to be globally visible, and those four functions
> > need to be shadowed by macros which just do if (timevar_enable) call
> > real function;.
> >
> > Would you be willing to make that change?
>
> I had that change but you rejected it because I could not show it
> improved that much.
Do you still have the patch, Andrew, or shall I recreate it?
Ben