From patchwork Fri Jan 21 19:27:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 79904 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 6ABC7B7107 for ; Sat, 22 Jan 2011 06:31:43 +1100 (EST) Received: (qmail 18089 invoked by alias); 21 Jan 2011 19:30:42 -0000 Received: (qmail 17885 invoked by uid 22791); 21 Jan 2011 19:30:36 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_SV, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gy0-f175.google.com (HELO mail-gy0-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Jan 2011 19:30:19 +0000 Received: by gyh20 with SMTP id 20so674705gyh.20 for ; Fri, 21 Jan 2011 11:30:18 -0800 (PST) Received: by 10.151.105.11 with SMTP id h11mr1223285ybm.231.1295638217978; Fri, 21 Jan 2011 11:30:17 -0800 (PST) Received: from napoca ([76.233.39.4]) by mx.google.com with ESMTPS id u3sm606873yba.16.2011.01.21.11.30.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 21 Jan 2011 11:30:17 -0800 (PST) Received: by napoca (sSMTP sendmail emulation); Fri, 21 Jan 2011 13:30:14 -0600 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de Subject: [PATCH 21/28] Do not create the temporary array for reductions into VAR_DECL, PARM_DECL, and RESULT_DECL. Date: Fri, 21 Jan 2011 13:27:40 -0600 Message-Id: <1295638067-13460-22-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 From: spop 2011-01-17 Sebastian Pop * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow VAR_DECL, PARM_DECL, and RESULT_DECL. * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@168956 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/ChangeLog.graphite | 7 +++++++ gcc/graphite-sese-to-poly.c | 5 ++++- gcc/testsuite/ChangeLog | 4 ++++ .../gfortran.dg/graphite/interchange-3.f90 | 2 +- 5 files changed, 21 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 587518d..e325c64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2011-01-21 Sebastian Pop + * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow + VAR_DECL, PARM_DECL, and RESULT_DECL. + +2011-01-21 Sebastian Pop + * graphite-dependences.c (reduction_dr_1): Allow several reductions in a reduction PBB. * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 091bbca..93af7f7 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,5 +1,12 @@ 2011-01-17 Sebastian Pop + * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow + VAR_DECL, PARM_DECL, and RESULT_DECL. + + * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. + +2011-01-17 Sebastian Pop + * graphite-dependences.c (reduction_dr_1): Allow several reductions in a reduction PBB. * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index a7178ef..35a2316 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2968,7 +2968,10 @@ close_phi_written_to_memory (gimple close_phi) && gimple_code (stmt) == GIMPLE_ASSIGN && (res = gimple_assign_lhs (stmt)) && (TREE_CODE (res) == ARRAY_REF - || TREE_CODE (res) == MEM_REF)) + || TREE_CODE (res) == MEM_REF + || TREE_CODE (res) == VAR_DECL + || TREE_CODE (res) == PARM_DECL + || TREE_CODE (res) == RESULT_DECL)) return res; return NULL_TREE; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0fe8983..864bd89 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2011-01-21 Sebastian Pop + * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. + +2011-01-21 Sebastian Pop + * gcc.dg/graphite/block-0.c: Un-XFAILed. * gcc.dg/graphite/block-1.c: Un-XFAILed. * gcc.dg/graphite/block-7.c: Un-XFAILed. diff --git a/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90 b/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90 index 04f4a13..06da2b3 100644 --- a/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90 +++ b/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90 @@ -24,5 +24,5 @@ Program FOO end Program FOO -! { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" { xfail *-*-* } } } +! { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" } } ! { dg-final { cleanup-tree-dump "graphite" } }