public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <law@redhat.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	       richard.sandiford@arm.com
Subject: Re: Fix reload1.c warning for some targets
Date: Tue, 11 Aug 2015 20:05:00 -0000	[thread overview]
Message-ID: <55CA556A.7080305@redhat.com> (raw)
In-Reply-To: <87pp31iqt4.fsf@e105548-lin.cambridge.arm.com>

On 08/05/2015 11:32 AM, Richard Sandiford wrote:
> and I don't see how GCC could prove that eliminate_regs_1 doesn't
> modify the value of recog_data.n_dups between the two loops.
> eliminate_regs_1 calls functions like plus_constant that are defined
> outside the TU and that certainly aren't pure/const.
Right.  I should have been clearer.  I don't think the reload1.c code is 
a false positive because we can't see into those functions to determine 
side effects.

> So I think c#5 (marked as a bogus reduction) is an accurate reflection
> of what reload1.c does.  c#4 looks like a genuine bug but seems different
> from the reload1.c case.  If we still warn for c#4 then I think we
> should keep the bugzilla entry open for that, but the warning for the
> reload1.c code seems justified.
Right.  I don't want to lose the false positive and associated missed 
jump threading in c#4.


  Perhaps the question is why it doesn't trigger on more targets :-)
Not sure.  Could be how match_dup is used plus some interactions with 
SRA and BRANCH_COST and who knows what else :-0


Jeff

  reply	other threads:[~2015-08-11 20:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 14:18 Richard Sandiford
2015-08-05 17:01 ` Jeff Law
2015-08-05 17:33   ` Richard Sandiford
2015-08-11 20:05     ` Jeff Law [this message]
2015-08-12 17:17 ` Jeff Law
2015-08-13 20:33   ` Richard Sandiford
2015-08-13 21:08     ` Jeff Law
2015-08-24 11:05     ` Rainer Orth
2015-09-03  8:50       ` Richard Sandiford
2015-09-04 20:16         ` Jeff Law
2015-09-10 19:33           ` Richard Sandiford

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=55CA556A.7080305@redhat.com \
    --to=law@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=richard.sandiford@arm.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).