From: Richard Biener <richard.guenther@gmail.com>
To: Tobias Grosser <tobias@grosser.es>
Cc: Sebastian Pop <sebpop@gmail.com>,
Aditya Kumar <hiraditya@msn.com>,
GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Discard Scops for which entry==exit
Date: Tue, 30 Jun 2015 07:56:00 -0000 [thread overview]
Message-ID: <CAFiYyc1W6UWXnKUDK52ixnB7ohkWWb0d6aGTohavf2fXQQjDWw@mail.gmail.com> (raw)
In-Reply-To: <559232F5.4040206@grosser.es>
On Tue, Jun 30, 2015 at 8:11 AM, Tobias Grosser <tobias@grosser.es> wrote:
> On 06/30/2015 02:09 AM, Sebastian Pop wrote:
>>
>> On Mon, Jun 29, 2015 at 3:04 PM, Aditya Kumar <hiraditya@msn.com> wrote:
>>>
>>> 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 <aditya.k7@samsung.com>
>>> Sebastian Pop <s.pop@samsung.com>
>>>
>>> * graphite-scop-detection.c (build_scops_1): Discard scops for
>>> which entry==exit
>>
>>
>> Looks good to me.
>> Let's wait on comments from Tobi before pushing this patch.
>
>
> Hi Sebastian,
>
> the commit message should probably give a short reasoning why scops with
> entry == exit need to be discarded. I currently don't see why they would be
> incorrect/problematic (despite being possibly very small/empty).
Dependent on how GRAPHITE initializes loops even a loop can consist of a single
basic-block (without LOOPS_HAVE_SIMPLE_LATCHES where you always have at
least two BBs for a loop).
I suppose GRAPHITE does nothing for non-loops and this is what the check is
about? (so rather require a backedge in the SCOP?)
Of ocurse I also don't see "correctness" issues here, just maybe a waste of
compile-time?
Richard.
> Tobias
next prev parent reply other threads:[~2015-06-30 7:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 20:25 Aditya Kumar
2015-06-30 0:13 ` Sebastian Pop
2015-06-30 6:11 ` Tobias Grosser
2015-06-30 7:56 ` Richard Biener [this message]
2015-06-30 15:49 ` Aditya K
2015-07-02 7:53 ` Tobias Grosser
2015-07-02 15:37 ` Aditya K
2015-07-02 15:42 ` Tobias Grosser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFiYyc1W6UWXnKUDK52ixnB7ohkWWb0d6aGTohavf2fXQQjDWw@mail.gmail.com \
--to=richard.guenther@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hiraditya@msn.com \
--cc=sebpop@gmail.com \
--cc=tobias@grosser.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).