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: Measure overload resolution overhead


Pariborz Jahanian <fjahanian@apple.com> writes:

| 2003-01-30  Fariborz Jahanian <fjahanian@apple.com>
| 
|          *  timevar.def: TV_OV_RESOLUTION added

This patch:

2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>

        * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
        timevar_id enumerations.

does that.

I believe I also added the macro POP_TIMEVAR_AND_RETURN() to be used
in cases where

   if (condition)
     return exp;

is replaced with

   if (condition)
     POP_TIMEVAR_AND_RETURN (TV_OVERLOAD, exp);

Even more,

    if (condition)
      return;

may be replaced with

    if (condition)
      POP_TIMEVAR_AND_RETURN (TV_OVERLOAD, (void)0);

-- Gaby


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