From patchwork Tue Aug 17 18:20:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 61949 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 D67E9B70A9 for ; Wed, 18 Aug 2010 04:20:56 +1000 (EST) Received: (qmail 10200 invoked by alias); 17 Aug 2010 18:20:52 -0000 Received: (qmail 10112 invoked by uid 22791); 17 Aug 2010 18:20:50 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pw0-f47.google.com (HELO mail-pw0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Aug 2010 18:20:45 +0000 Received: by pwj1 with SMTP id 1so2502771pwj.20 for ; Tue, 17 Aug 2010 11:20:43 -0700 (PDT) Received: by 10.142.71.20 with SMTP id t20mr6162506wfa.186.1282069243489; Tue, 17 Aug 2010 11:20:43 -0700 (PDT) Received: from napoca ([163.181.251.115]) by mx.google.com with ESMTPS id 23sm10025925wfa.22.2010.08.17.11.20.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 11:20:42 -0700 (PDT) Received: by napoca (sSMTP sendmail emulation); Tue, 17 Aug 2010 13:20:39 -0500 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: gcc-graphite@googlegroups.com, Sebastian Pop Subject: [PATCH 3/5] Disable graphite loop optimizations with fgraphite read. Date: Tue, 17 Aug 2010 13:20:22 -0500 Message-Id: <1282069224-21268-4-git-send-email-sebpop@gmail.com> In-Reply-To: <1282069224-21268-1-git-send-email-sebpop@gmail.com> References: <1282069224-21268-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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 2010-08-14 Riyadh Baghdadi * toplev.c (process_options): Disable graphite loop optimization options when -fgraphite-read flag is used. --- gcc/ChangeLog.graphite | 5 +++++ gcc/toplev.c | 9 +++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index ccc8b9c..78f6a1c 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,8 @@ +2010-08-14 Riyadh Baghdadi + + * toplev.c (process_options): Disable graphite loop optimization + options when -fgraphite-read flag is used. + 2010-08-17 Riyadh Baghdadi * graphite-poly.c (init_graphite_out_file): New. diff --git a/gcc/toplev.c b/gcc/toplev.c index 4f3f7fc..1ff5299 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1871,6 +1871,15 @@ process_options (void) sorry ("Graphite loop optimizations cannot be used"); #endif + /* Disable graphite loop optimizations when -fgraphite-read is + used. */ + if (flag_graphite_read) + { + flag_loop_block = 0; + flag_loop_interchange = 0; + flag_loop_strip_mine = 0; + } + /* Unrolling all loops implies that standard loop unrolling must also be done. */ if (flag_unroll_all_loops)