public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Stubbs <ams@codesourcery.com>
To: Jeff Law <law@redhat.com>, <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH 01/10] Fix IRA ICE.
Date: Wed, 21 Nov 2018 11:35:00 -0000	[thread overview]
Message-ID: <b01c1c2a-388c-94e2-7873-b840abd03fce@codesourcery.com> (raw)
In-Reply-To: <a6fa04a0-57cf-8dc5-44e9-ba266fb052a9@redhat.com>

On 21/11/2018 00:47, Jeff Law wrote:
> This seems like a really gross hack and sets an expectation that
> generating registers in the target after IRA has started is OK.  It is
> not OK.  THe fact that this works is, IMHO, likely an accident.

What's the proper test for this? Neither lra_in_progress nor 
reload_in_progress is set here, and can_create_pseudos returns true.

The patterns have the ability to not generate registers, but they don't 
know not to.

Richard Sandiford has stated that it should be OK, but perhaps the other 
architectures also work by accident?

In fact, since we're using LRA (not reload), my understanding is that I 
ought to be able to create new pseudos right up until reload_completed. 
(Although, my experience is that it's easy to get into an infinite loop 
doing that.)

> I think this comes back to the fundamental representational issue with
> the EXEC handling that still needs to be addressed.

Undoubtedly, this makes it worse, but even without that I'd still want 
to expand vector memory moves long before split1, so at least some cases 
have to generate additional registers. (Perhaps IRA doesn't create 
memory moves though? I'm not sure.)

I'm going to investigate how easy it is to fix the EXEC representation 
issues. I've been resisting because I had a deadline to make, and it's 
bound to be an invasive and destabilizing alteration (albeit largely 
mechanical), but if it's going to be a barrier to commit then probably 
it's become time. :-(

Andrew

  reply	other threads:[~2018-11-21 11:35 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-16 16:27 [PATCH 00/10] AMD GCN Port v2 Andrew Stubbs
2018-11-16 16:27 ` [PATCH 01/10] Fix IRA ICE Andrew Stubbs
2018-11-21  0:47   ` Jeff Law
2018-11-21 11:35     ` Andrew Stubbs [this message]
2018-12-08 12:15       ` Richard Sandiford
2018-12-08 16:23         ` Jeff Law
2018-12-10 15:22           ` Andrew Stubbs
2018-11-16 16:28 ` [PATCH 07/10] Add dg-require-effective-target exceptions Andrew Stubbs
2018-11-26 22:08   ` Mike Stump
2018-11-27  9:29     ` Andrew Stubbs
2018-11-16 16:28 ` [PATCH 09/10] Ignore LLVM's blank lines Andrew Stubbs
2018-11-16 16:28 ` [PATCH 05/10] GCN back-end code Andrew Stubbs
2018-11-16 16:28 ` [PATCH 08/10] Testsuite: GCN is always PIE Andrew Stubbs
2018-11-16 16:28 ` [PATCH 03/10] GCN libgcc Andrew Stubbs
2018-11-21  0:49   ` Jeff Law
2018-11-16 16:28 ` [PATCH 04/10] GCN machine description Andrew Stubbs
2018-11-16 16:28 ` [PATCH 02/10] GCN libgfortran Andrew Stubbs
2018-11-16 16:29 ` [PATCH 06/10] GCN back-end config Andrew Stubbs
2018-11-16 17:44   ` Joseph Myers
2018-11-20 11:44     ` Andrew Stubbs
2018-11-21  2:32   ` Jeff Law
2018-11-16 16:29 ` [PATCH 10/10] Port testsuite to GCN Andrew Stubbs
2018-11-21  1:01   ` Jeff Law
2018-11-26 20:04     ` Mike Stump
2018-11-26 21:13       ` Mike Stump
2018-11-27  9:27         ` Andrew Stubbs
2018-12-06 16:10         ` Andrew Stubbs
2018-12-06 15:27     ` Andrew Stubbs
2018-12-08 12:05       ` 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=b01c1c2a-388c-94e2-7873-b840abd03fce@codesourcery.com \
    --to=ams@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --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).