From patchwork Thu Jan 20 00:19:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 79627 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 94D61B7156 for ; Thu, 20 Jan 2011 11:20:22 +1100 (EST) Received: (qmail 10236 invoked by alias); 20 Jan 2011 00:20:17 -0000 Received: (qmail 10138 invoked by uid 22791); 20 Jan 2011 00:20:17 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Jan 2011 00:20:11 +0000 Received: by iyj18 with SMTP id 18so3071iyj.20 for ; Wed, 19 Jan 2011 16:20:10 -0800 (PST) Received: by 10.42.221.10 with SMTP id ia10mr1764462icb.100.1295482810185; Wed, 19 Jan 2011 16:20:10 -0800 (PST) Received: from napoca ([163.181.251.115]) by mx.google.com with ESMTPS id k38sm5687838ick.21.2011.01.19.16.20.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 19 Jan 2011 16:20:09 -0800 (PST) Received: by napoca (sSMTP sendmail emulation); Wed, 19 Jan 2011 18:20:05 -0600 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, gcc-graphite@googlegroups.com, Sebastian Pop Subject: [PATCH 1/3] Move rewrite_commutative_reductions_out_of_ssa before find_scop_parameters. Date: Wed, 19 Jan 2011 18:19:54 -0600 Message-Id: <1295482796-29304-2-git-send-email-sebpop@gmail.com> In-Reply-To: References: X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 2011-01-19 Sebastian Pop * graphite-sese-to-poly.c (build_poly_scop): Move rewrite_commutative_reductions_out_of_ssa before find_scop_parameters. --- gcc/ChangeLog.graphite | 6 ++++++ gcc/graphite-sese-to-poly.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index ed3e4ab..45e945c 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,9 @@ +2011-01-19 Sebastian Pop + + * graphite-sese-to-poly.c (build_poly_scop): Move + rewrite_commutative_reductions_out_of_ssa before + find_scop_parameters. + 2011-01-18 Sebastian Pop PR tree-optimization/46970 diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 12b93b0..9184065 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -3159,6 +3159,9 @@ build_poly_scop (scop_p scop) if (!scop_ivs_can_be_represented (scop)) return; + if (flag_associative_math) + rewrite_commutative_reductions_out_of_ssa (scop); + build_sese_loop_nests (region); build_sese_conditions (region); find_scop_parameters (scop); @@ -3175,8 +3178,6 @@ build_poly_scop (scop_p scop) representation to the polyhedral representation to avoid scev analysis failures. That means that these functions will insert new data references that they create in the right place. */ - if (flag_associative_math) - rewrite_commutative_reductions_out_of_ssa (scop); rewrite_reductions_out_of_ssa (scop); rewrite_cross_bb_scalar_deps_out_of_ssa (scop);