From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107923 invoked by alias); 9 Nov 2015 05:16:29 -0000 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 Received: (qmail 107904 invoked by uid 89); 9 Nov 2015 05:16:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FSL_HELO_NON_FQDN_1,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: daffodil Received: from cpe-70-113-50-193.austin.res.rr.com (HELO daffodil) (70.113.50.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Nov 2015 05:16:28 +0000 Received: by daffodil (Postfix, from userid 1000) id 3CDF517000D5; Sun, 8 Nov 2015 23:16:12 -0600 (CST) From: hiraditya To: gcc-patches@gcc.gnu.org Cc: tobias@grosser.es, sebpop@gmail.com, richard.guenther@gmail.com, aditya.k7@samsung.com, hiraditya@msn.com, hiraditya Subject: [PATCH] RFC: Enable graphite at -O3 -fprofile_use Date: Mon, 09 Nov 2015 05:16:00 -0000 Message-Id: <1447046170-16134-1-git-send-email-hiraditya@gmail.com> X-SW-Source: 2015-11/txt/msg00894.txt.bz2 Since graphite will not modify the CFG when it does not do any optimization, we would like to propose that graphite's polyhedral optimizer be enabled at -O3 -fprofile-use where, compile time is of lesser concern. gcc/ChangeLog: 2015-11-08 Aditya Kumar Sebastian Pop * graphite.c (gate_graphite_transforms): Enable graphite on -O3 -fprofile-use. --- gcc/graphite.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/graphite.c b/gcc/graphite.c index 5316bc4..49595ac 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -383,6 +383,9 @@ gate_graphite_transforms (void) || flag_loop_optimize_isl) flag_graphite = 1; + if (optimize >= 3 && flag_profile_use) + flag_loop_optimize_isl = 1; + return flag_graphite != 0; } -- 2.1.4