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 a debugcounter to IPA-SRA


On Wed, Jul 28, 2010 at 3:31 PM, Martin Jambor <mjambor@suse.cz> wrote:
> Hi,
>
> debug counters can often be useful when looking into IPA-SRA related
> issues and so the patch below adds one to the gate of the pass.
> Bootstrapped and tested on x86_64-linux. ?OK for trunk?

Ok

Thanks,
Richard.

> Thanks,
>
> Martin
>
>
> 2010-07-26 ?Martin Jambor ?<mjambor@suse.cz>
>
> ? ? ? ?* dbgcnt.def (eipa_sra): New counter.
> ? ? ? ?* tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
>
> Index: mine/gcc/dbgcnt.def
> ===================================================================
> --- mine.orig/gcc/dbgcnt.def
> +++ mine/gcc/dbgcnt.def
> @@ -169,6 +169,7 @@ DEBUG_COUNTER (pre)
> ?DEBUG_COUNTER (pre_insn)
> ?DEBUG_COUNTER (treepre_insert)
> ?DEBUG_COUNTER (tree_sra)
> +DEBUG_COUNTER (eipa_sra)
> ?DEBUG_COUNTER (sched2_func)
> ?DEBUG_COUNTER (sched_block)
> ?DEBUG_COUNTER (sched_func)
> Index: mine/gcc/tree-sra.c
> ===================================================================
> --- mine.orig/gcc/tree-sra.c
> +++ mine/gcc/tree-sra.c
> @@ -4451,7 +4451,7 @@ ipa_early_sra (void)
> ?static bool
> ?ipa_early_sra_gate (void)
> ?{
> - ?return flag_ipa_sra;
> + ?return flag_ipa_sra && dbg_cnt (eipa_sra);
> ?}
>
> ?struct gimple_opt_pass pass_early_ipa_sra =
>


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