public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Jeff Law <law@redhat.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
	GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH][PR tree-optimization/67892] Use FSM threader to handle backedges
Date: Mon, 02 Nov 2015 09:43:00 -0000	[thread overview]
Message-ID: <CAFiYyc14DKh9KKGS6X1iSqDi=naCkeFQzYSp9-g36SMwnAP4Aw@mail.gmail.com> (raw)
In-Reply-To: <5633D2B6.4080201@redhat.com>

On Fri, Oct 30, 2015 at 9:27 PM, Jeff Law <law@redhat.com> wrote:
> On 10/30/2015 07:57 AM, Andreas Schwab wrote:
>>
>> I'm getting this regression on m68k:
>>
>> FAIL: gcc.dg/tree-ssa/ssa-thread-11.c scan-tree-dump vrp2 "FSM"
>>
>> The generated code looks equivalent, though.
>
> Definitely an artifact of differences in branch costing.  Pondering the best
> way to fix.

The usual list of targets and a dg-skip ...

Or work towards eliminating those "early" target dependences
introduced in our IL.
Major effects are from LOGICAL_OP_NON_SHORT_CIRCUIT (boiling down to
BRANCH_COST as default) and from PUSH_ARGS_REVERSED.  Esp. the
logical-op-non-short-circuit decisions are done a bit early (before
profile-reading
for example).  So I'd rather keep the short-circuiting for all targets (for the
GENERIC folding) and let ifcombine do the "heavy" lifting also taking
into account
branch predictability (and target preferences).

Richard.

> jeff

      reply	other threads:[~2015-11-02  9:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29 16:20 Jeff Law
2015-10-30 14:08 ` Andreas Schwab
2015-10-30 14:34   ` Jeff Law
2015-10-30 17:56   ` Jeff Law
2015-10-30 20:20   ` Jeff Law
2015-10-30 20:45   ` Jeff Law
2015-11-02  9:43     ` Richard Biener [this message]

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='CAFiYyc14DKh9KKGS6X1iSqDi=naCkeFQzYSp9-g36SMwnAP4Aw@mail.gmail.com' \
    --to=richard.guenther@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=law@redhat.com \
    --cc=schwab@linux-m68k.org \
    /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).