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] Add dbgcnt for gimple_match and generic_match.


On Wed, Jul 3, 2019 at 12:39 PM Martin Liška <mliska@suse.cz> wrote:
>
> Hi.
>
> The patch is about dbgcnt support for match in GIMPLE and GENERIC.
> It's handy for isolation of a problem.
>
> Ready to be installed after it survives tests?

Hmm, I think we only want this on (simplify...), not (match...), no?
Thus simply move the code into the preceeding if() body.

I'd also merge gimple and generic_match counters since passes
happen to use both.

OK with that changes.
Richard.

> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 2019-07-03  Martin Liska  <mliska@suse.cz>
>
>         * dbgcnt.def (DEBUG_COUNTER): Add gimple_match and
>         generic_match.
>         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
>         condition.
>         * generic-match-head.c: Include dbgcnt.h.
>         * gimple-match-head.c: Likewise.
> ---
>  gcc/dbgcnt.def           | 2 ++
>  gcc/generic-match-head.c | 2 +-
>  gcc/genmatch.c           | 5 +++++
>  gcc/gimple-match-head.c  | 2 +-
>  4 files changed, 9 insertions(+), 2 deletions(-)
>
>


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