diff options
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r-- | gcc/graphite.c | 17 |
1 files changed, 11 insertions, 6 deletions
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) |