From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25962 invoked by alias); 2 Aug 2010 20:22:34 -0000 Received: (qmail 25890 invoked by uid 22791); 2 Aug 2010 20:22:33 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_DB,TW_SV,TW_TM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Aug 2010 20:22:22 +0000 Received: by mail-yx0-f175.google.com with SMTP id 11so1550084yxi.20 for ; Mon, 02 Aug 2010 13:22:22 -0700 (PDT) Received: by 10.151.92.15 with SMTP id u15mr7413203ybl.447.1280780542339; Mon, 02 Aug 2010 13:22:22 -0700 (PDT) Received: from napoca (cpe-70-120-196-107.austin.res.rr.com [70.120.196.107]) by mx.google.com with ESMTPS id q21sm4389714ybk.3.2010.08.02.13.22.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Aug 2010 13:22:21 -0700 (PDT) Received: by napoca (sSMTP sendmail emulation); Mon, 02 Aug 2010 15:22:18 -0500 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: Tobias Grosser , gcc-graphite Subject: [PATCH 18/65] Split rewrite_cross_bb_scalar_deps_out_of_ssa out from rewrite_reductions_out_of_ssa. Date: Mon, 02 Aug 2010 20:22:00 -0000 Message-Id: <1280780438-17543-19-git-send-email-sebpop@gmail.com> In-Reply-To: <1280780438-17543-1-git-send-email-sebpop@gmail.com> References: <1280780438-17543-1-git-send-email-sebpop@gmail.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg00093.txt.bz2 From: spop 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@161291 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 8 ++++++++ gcc/ChangeLog.graphite | 8 ++++++++ gcc/graphite-sese-to-poly.c | 11 +++++++++++ gcc/graphite-sese-to-poly.h | 1 + gcc/graphite.c | 1 + 5 files changed, 29 insertions(+), 0 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9980de1..bfdc49a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,13 @@ 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. 2010-08-02 Alexander Monakov diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 166d9f3..0d64cc3 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,5 +1,13 @@ 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. 2010-06-15 Sebastian Pop diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 8baf379..8bcd684 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 2e0cc08..558a283 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 5b3b6aa..4bb4344 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); } -- 1.7.0.4