Re: [PATCH RFA] timevar: Add auto_cond_timevar class

2021-10-18 Thread Richard Biener via Gcc-patches
On Mon, Oct 18, 2021 at 4:23 PM Jason Merrill via Gcc-patches wrote: > > The auto_timevar sentinel class for starting and stopping timevars was added > in 2014, but doesn't work for the many uses of timevar_cond_start/stop in > the C++ front end. So let's add one that does. > > This allows us to

[PATCH RFA] timevar: Add auto_cond_timevar class

2021-10-18 Thread Jason Merrill via Gcc-patches
The auto_timevar sentinel class for starting and stopping timevars was added in 2014, but doesn't work for the many uses of timevar_cond_start/stop in the C++ front end. So let's add one that does. This allows us to remove a lot of wrapper functions that were just used to call timevar_cond_stop o