public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Jeff Law <law@redhat.com>
Cc: Richard Sandiford <richard.sandiford@arm.com>,
	       gcc-patches List <gcc-patches@gcc.gnu.org>
Subject: Re: [RFA] [PR rtl-optimization/90275] Handle nop reg->reg copies in cse
Date: Sat, 08 Feb 2020 16:41:00 -0000	[thread overview]
Message-ID: <20200208164128.GZ22482@gate.crashing.org> (raw)
In-Reply-To: <2a46a1ab3d68ce31d109ef9aedcc40e991498936.camel@redhat.com>

On Fri, Feb 07, 2020 at 09:00:40AM -0700, Jeff Law wrote:
> On Thu, 2020-02-06 at 07:56 -0600, Segher Boessenkool wrote:
> > On Wed, Feb 05, 2020 at 11:48:23AM -0700, Jeff Law wrote:
> > > Yea, it's closely related.  In your case you need to effectively ignore
> > > the nop insn to get the optimization you want.  In mine that nop insn
> > > causes an ICE.
> > > 
> > > I think we could take your cse bits + adding a !CALL_P separately from
> > > the simplify-rtx stuff which Segher objected to.  THat'd likely solve
> > > the ARM ICEs and take you a tiny step forward on optimizing that SVE
> > > case.  Thoughts?
> > 
> > CSE should consistently keep track of what insns are no-op moves (in its
> > definition, all passes have a slightly different definition of this),
> > and use that everywhere consistently.
> So does that mean you object to the cse.c portion of Richard's patch?

It's more a "what we need to do in the future" thing, it is stage 4 now,
it is too big a change to do now.

What patch?  The "34" patch?  https://gcc.gnu.org/r278411 .

I don't think each stanza of code should use it's own "noop-ness", no.

I don't know if this patch makes matters worse or not.  It doesn't seem
suitable for stage 4 though.  And Richard said the cse.c part breaks
rs6000, if that is true, yes I do object ;-)


Segher

  reply	other threads:[~2020-02-08 16:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-05  1:04 Jeff Law
2020-02-05  6:26 ` Jakub Jelinek
2020-02-05 12:09   ` Segher Boessenkool
2020-02-05 13:31 ` Richard Sandiford
2020-02-06 13:01   ` Jeff Law
2020-02-06 13:57     ` Segher Boessenkool
2020-02-07 16:01       ` Jeff Law
2020-02-08 16:41         ` Segher Boessenkool [this message]
2020-03-12 18:03           ` Jeff Law
2020-03-12 18:23             ` Segher Boessenkool
2020-03-12 18:47               ` Jeff Law
2020-03-12 20:26                 ` Segher Boessenkool
2020-03-12 20:56                   ` Jeff Law
2020-03-13 10:29                     ` Richard Sandiford
2020-03-12 22:11               ` Jeff Law
2020-03-13  8:09                 ` Christophe Lyon
2020-03-13 21:49                   ` Jeff Law

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=20200208164128.GZ22482@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=law@redhat.com \
    --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).