From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87898 invoked by alias); 29 Jun 2015 20:06:22 -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 87887 invoked by uid 89); 29 Jun 2015 20:06:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY,TVD_RCVD_IP autolearn=no version=3.3.2 X-HELO: mailhost.sarc.sas Received: from 72-48-121-251.static.grandenetworks.net (HELO mailhost.sarc.sas) (72.48.121.251) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Jun 2015 20:06:21 +0000 Received: from cc00.spa.sarc.sas (cc00.spa.sarc.sas [172.31.207.192]) by mailhost.sarc.sas (Postfix) with ESMTP id 232CF2E063; Mon, 29 Jun 2015 15:06:19 -0500 (CDT) Received: by cc00.spa.sarc.sas (Postfix, from userid 12677) id 158EE129347; Mon, 29 Jun 2015 15:06:19 -0500 (CDT) From: Aditya Kumar To: hiraditya@msn.com, gcc-patches@gcc.gnu.org, spop@gmail.com Subject: [PATCH] Discard Scops for which entry==exit Date: Mon, 29 Jun 2015 20:25:00 -0000 Message-Id: <1435608255-10186-1-git-send-email-hiraditya@msn.com> X-SW-Source: 2015-06/txt/msg02115.txt.bz2 In this patch we discard the scops where entry and exit are the same BB. This is an effort to remove graphite-scop-detection.c:limit_scops. Removing the limit_scops function introduces correctness regressions. We are making relevant changes in incremental steps to fix those bugs, and finally we intend to remove limit_scops. 2015-06-29 Aditya Kumar Sebastian Pop * graphite-scop-detection.c (build_scops_1): Discard scops for which entry==exit --- gcc/graphite-scop-detection.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index e8ddecd..f57cc4a 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -810,7 +810,14 @@ build_scops_1 (basic_block current, loop_p outermost_loop, { open_scop.exit = sinfo.exit; gcc_assert (open_scop.exit); - scops->safe_push (open_scop); + if (open_scop.entry != open_scop.exit) + scops->safe_push (open_scop); + else + { + sinfo.difficult = true; + sinfo.exits = false; + sinfo.exit = NULL; + } } result.exit = sinfo.exit; -- 2.1.0.243.g30d45f7