From: Sebastian Pop Date: Wed, 11 Aug 2010 20:25:02 +0000 (+0000) Subject: Split rewrite_cross_bb_scalar_deps_out_of_ssa out from rewrite_reductions_out_of_ssa. X-Git-Tag: releases/gcc-4.6.0~5088 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee646fc62bdea6e5df4fdc12dc8de143808c0bfe;p=thirdparty%2Fgcc.git Split rewrite_cross_bb_scalar_deps_out_of_ssa out from rewrite_reductions_out_of_ssa. 2010-06-23 Sebastian Pop * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa): Split out of rewrite_reductions_out_of_ssa. * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa): Declared. * graphite.c (graphite_transform_loops): Call it. From-SVN: r163122 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 263689f77a6d..96370069f4e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2010-08-02 Sebastian Pop + + * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa): + Split out of rewrite_reductions_out_of_ssa. + * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa): + Declared. + * graphite.c (graphite_transform_loops): Call it. + 2010-08-02 Sebastian Pop * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 166d9f3ef321..0d64cc312ac9 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,11 @@ +2010-06-23 Sebastian Pop + + * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa): + Split out of rewrite_reductions_out_of_ssa. + * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa): + Declared. + * graphite.c (graphite_transform_loops): Call it. + 2010-06-23 Sebastian Pop * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 8baf379a5a1b..8bcd68484657 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2425,6 +2425,17 @@ rewrite_reductions_out_of_ssa (scop_p scop) #ifdef ENABLE_CHECKING verify_loop_closed_ssa (true); #endif +} + + +/* Rewrite out of SSA all the reduction phi nodes of SCOP. */ + +void +rewrite_cross_bb_scalar_deps_out_of_ssa (scop_p scop) +{ + basic_block bb; + gimple_stmt_iterator psi; + sese region = SCOP_REGION (scop); FOR_EACH_BB (bb) if (bb_in_sese_p (bb, region)) diff --git a/gcc/graphite-sese-to-poly.h b/gcc/graphite-sese-to-poly.h index 2e0cc0814ad9..558a2831af96 100644 --- a/gcc/graphite-sese-to-poly.h +++ b/gcc/graphite-sese-to-poly.h @@ -32,6 +32,7 @@ void build_poly_scop (scop_p); void check_poly_representation (scop_p); void rewrite_commutative_reductions_out_of_ssa (sese, sbitmap); void rewrite_reductions_out_of_ssa (scop_p); +void rewrite_cross_bb_scalar_deps_out_of_ssa (scop_p); void build_scop_bbs (scop_p, sbitmap); #endif diff --git a/gcc/graphite.c b/gcc/graphite.c index 5b3b6aa7b3f3..4bb4344a7d61 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -280,6 +280,7 @@ graphite_transform_loops (void) if (dbg_cnt (graphite_scop)) { rewrite_reductions_out_of_ssa (scop); + rewrite_cross_bb_scalar_deps_out_of_ssa (scop); build_scop_bbs (scop, reductions); }