public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: Aldy Hernandez <aldyh@redhat.com>
Cc: Andrew MacLeod <amacleod@redhat.com>, Michael Matz <matz@suse.de>,
	GCC patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Avoid invalid loop transformations in jump threading registry.
Date: Fri, 24 Sep 2021 10:09:48 -0600	[thread overview]
Message-ID: <63accb37-bdd7-c79b-02ca-b6e1c4561bf5@gmail.com> (raw)
In-Reply-To: <92e7c6db-dffe-5ed6-2340-426d49a63c8b@redhat.com>



On 9/24/2021 5:34 AM, Aldy Hernandez wrote:
>
>
> On 9/23/21 6:10 PM, Jeff Law wrote:
>>
>>
>> On 9/23/2021 5:15 AM, Aldy Hernandez wrote:
>>> My upcoming improvements to the forward jump threader make it thread
>>> more aggressively.  In investigating some "regressions", I noticed
>>> that it has always allowed threading through empty latches and across
>>> loop boundaries.  As we have discussed recently, this should be avoided
>>> until after loop optimizations have run their course.
>>>
>>> Note that this wasn't much of a problem before because DOM/VRP
>>> couldn't find these opportunities, but with a smarter solver, we trip
>>> over them more easily.
>> We used to be much more aggressive in this space -- but we removed 
>> the equivalency tracking on backedges in the main part of DOM which 
>> had the side effect to reducing the number of threads related to back 
>> edges in loops.
>
> I thought we couldn't thread through back edges at all in the old 
> threader, or are we talking about the same thing?  We have a hard fail 
> on backedge thread attempts for anything but the backward threader and 
> its custom copier.
We used to have it in the distant past IIRC.

Jeff


  reply	other threads:[~2021-09-24 16:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 11:15 Aldy Hernandez
2021-09-23 16:10 ` Jeff Law
2021-09-24 11:34   ` Aldy Hernandez
2021-09-24 16:09     ` Jeff Law [this message]
2021-09-24 13:15 ` Christophe LYON

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=63accb37-bdd7-c79b-02ca-b6e1c4561bf5@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=aldyh@redhat.com \
    --cc=amacleod@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=matz@suse.de \
    /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).