From: Richard Biener <richard.guenther@gmail.com>
To: Jeff Law <law@redhat.com>
Cc: Jan Hubicka <hubicka@ucw.cz>, GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Allow FSM to thread single block cases too
Date: Wed, 14 Oct 2015 12:46:00 -0000 [thread overview]
Message-ID: <CAFiYyc37QvGeKJGc_LQNYXOs=vQh4qZXGAns+W+E+jcc3=Zvpw@mail.gmail.com> (raw)
In-Reply-To: <561E4DAD.9060702@redhat.com>
On Wed, Oct 14, 2015 at 2:42 PM, Jeff Law <law@redhat.com> wrote:
> On 10/14/2015 04:16 AM, Richard Biener wrote:
>>
>> On Tue, Oct 13, 2015 at 2:52 PM, Richard Biener
>> <richard.guenther@gmail.com> wrote:
>>>
>>> On Tue, Oct 13, 2015 at 2:21 PM, Jeff Law <law@redhat.com> wrote:
>>>>
>>>>
>>>> One of the cases that was missing in the FSM support is threading when
>>>> the
>>>> path is a single block. ie, a control statement's output can be
>>>> statically
>>>> determined just by looking at PHIs in the control statement's block for
>>>> one
>>>> or incoming edges.
>>>>
>>>> This is necessary to fix a regression if I turn off the old jump
>>>> threader's
>>>> backedge support. Just as important, Jan has in the past asked about a
>>>> trivial jump threader to be run during early optimizations. Limiting
>>>> the
>>>> FSM bits to this case would likely satisfy that need in the future.
>>>
>>>
>>> I think he asked for trivial forward threads though due to repeated
>>> tests.
>>> I hacked FRE to do this (I think), but maybe some trivial cleanup
>>> opportunities
>>> are still left here. Honza?
>>
>>
>> This or other related patches in the range r228731:228774 has caused a
>> quite
>> big jump in SPEC CPU 2000 binary sizes (notably 176.gcc - so maybe
>> affecting
>> bootstrap as well, at -O3). Are you sure this doesn't re-introduce DOM
>> effectively peeling all loops once?
>
> It's possible. I've actually got a patch in overnight testing that
> introduces some of the heuristics to avoid mucking up loops to the FSM bits.
Like never threading a loop exit test to the loop header (but only to the exit).
At least if it is the only exit in the loop (but maybe better for all exits).
Richard.
> jeff
>
next prev parent reply other threads:[~2015-10-14 12:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 12:21 Jeff Law
2015-10-13 12:52 ` Richard Biener
2015-10-14 10:16 ` Richard Biener
2015-10-14 12:42 ` Jeff Law
2015-10-14 12:46 ` Richard Biener [this message]
2015-10-14 12:55 ` Jeff Law
2015-10-14 15:43 ` Jan Hubicka
2015-10-14 15:53 ` Jeff Law
2015-10-15 8:28 ` Richard Biener
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='CAFiYyc37QvGeKJGc_LQNYXOs=vQh4qZXGAns+W+E+jcc3=Zvpw@mail.gmail.com' \
--to=richard.guenther@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hubicka@ucw.cz \
--cc=law@redhat.com \
/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).