diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b475e5835ac..263689f77a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2010-08-02 Sebastian Pop + + * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. + +2010-08-02 Alexander Monakov + + * dbgcnt.def (graphite_scop): New counter. + * graphite.c: Include dbgcnt.h. + (graphite_transform_loops): Use new counter to limit transformations. + * Makefile.in (graphite.o): Depend on DBGCNT_H. + 2010-08-02 Sebastian Pop * passes.c (init_optimization_passes): Add pass_graphite. diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 8b72f3e0a4d..166d9f3ef32 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,7 @@ +2010-06-23 Sebastian Pop + + * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. + 2010-06-15 Sebastian Pop * passes.c (init_optimization_passes): Add pass_graphite. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index d87d4e2f66d..7ba49a80d67 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2663,7 +2663,7 @@ sese.o: sese.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ pointer-set.h $(GIMPLE_H) sese.h tree-pretty-print.h graphite.o: graphite.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TOPLEV_H) $(DIAGNOSTIC_CORE_H) \ - $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) $(GIMPLE_H) \ + $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) $(GIMPLE_H) $(DBGCNT_H) \ $(PREDICT_H) $(TREE_DATA_REF_H) tree-pass.h graphite.h \ pointer-set.h value-prof.h graphite-ppl.h sese.h \ graphite-scop-detection.h graphite-clast-to-gimple.h \ diff --git a/gcc/dbgcnt.def b/gcc/dbgcnt.def index ba7ce1feaa5..0492d662635 100644 --- a/gcc/dbgcnt.def +++ b/gcc/dbgcnt.def @@ -157,6 +157,7 @@ DEBUG_COUNTER (dse2) DEBUG_COUNTER (gcse2_delete) DEBUG_COUNTER (global_alloc_at_func) DEBUG_COUNTER (global_alloc_at_reg) +DEBUG_COUNTER (graphite_scop) DEBUG_COUNTER (hoist) DEBUG_COUNTER (hoist_insn) DEBUG_COUNTER (ia64_sched2) diff --git a/gcc/graphite.c b/gcc/graphite.c index c4fd2a3caf4..5b3b6aa7b3f 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -55,6 +55,7 @@ along with GCC; see the file COPYING3. If not see #include "gimple.h" #include "sese.h" #include "predict.h" +#include "dbgcnt.h" #ifdef HAVE_cloog @@ -271,18 +272,22 @@ graphite_transform_loops (void) sbitmap_zero (reductions); for (i = 0; VEC_iterate (scop_p, scops, i, scop); i++) - rewrite_commutative_reductions_out_of_ssa (SCOP_REGION (scop), reductions); + if (dbg_cnt (graphite_scop)) + rewrite_commutative_reductions_out_of_ssa (SCOP_REGION (scop), + reductions); for (i = 0; VEC_iterate (scop_p, scops, i, scop); i++) - { - rewrite_reductions_out_of_ssa (scop); - build_scop_bbs (scop, reductions); - } + if (dbg_cnt (graphite_scop)) + { + rewrite_reductions_out_of_ssa (scop); + build_scop_bbs (scop, reductions); + } sbitmap_free (reductions); for (i = 0; VEC_iterate (scop_p, scops, i, scop); i++) - build_poly_scop (scop); + if (dbg_cnt (graphite_scop)) + build_poly_scop (scop); for (i = 0; VEC_iterate (scop_p, scops, i, scop); i++) if (POLY_SCOP_P (scop)