From: Richard Biener <richard.guenther@gmail.com>
To: Aldy Hernandez <aldyh@redhat.com>
Cc: Jeff Law <jeffreyalaw@gmail.com>,
Jakub Jelinek <jakub@redhat.com>,
"MacLeod, Andrew" <amacleod@redhat.com>,
gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Remove legacy VRP (maybe?)
Date: Wed, 23 Nov 2022 21:09:28 +0100 [thread overview]
Message-ID: <CAFiYyc2Aau2iHsDq5OfczM+Emgr4oeBJiHNQfXQX3ftxyvSY6g@mail.gmail.com> (raw)
In-Reply-To: <84f3725f-7635-2ff1-22d7-1dcdb544cdfd@redhat.com>
On Tue, Nov 22, 2022 at 2:40 PM Aldy Hernandez <aldyh@redhat.com> wrote:
>
>
>
> On 11/22/22 10:22, Richard Biener wrote:
> > On Tue, Nov 22, 2022 at 10:04 AM Aldy Hernandez <aldyh@redhat.com> wrote:
> >>
> >>
> >>
> >> On 11/22/22 09:25, Richard Biener wrote:
> >>> On Tue, Nov 22, 2022 at 9:24 AM Richard Biener
> >>> <richard.guenther@gmail.com> wrote:
> >>>>
> >>>> On Mon, Nov 21, 2022 at 5:49 PM Jeff Law <jeffreyalaw@gmail.com> wrote:
> >>>>>
> >>>>>
> >>>>> On 11/21/22 09:35, Aldy Hernandez via Gcc-patches wrote:
> >>>>>> I've been playing around with removing the legacy VRP code for the
> >>>>>> next release. It's a layered onion to get this right, but the first
> >>>>>> bit is pretty straightforward and may be useful for this release.
> >>>>>> Basically, it entails removing the old VRP pass itself, along with
> >>>>>> value_range_equiv which have no producers left. The current users of
> >>>>>> value_range_equiv don't put anything in the equivalence bitmaps, so
> >>>>>> they're basically behaving like plain value_range.
> >>>>>>
> >>>>>> I removed as much as possible without having to change any behavior,
> >>>>>> and this is what I came up with. Is this something that would be
> >>>>>> useful for this release? Would it help release managers have less
> >>>>>> unused cruft in the tree?
> >>>>>>
> >>>>>> Neither Andrew nor I have any strong feelings here. We don't foresee
> >>>>>> the legacy code changing at all in the offseason, so we can just
> >>>>>> accumulate these patches in local trees.
> >>>>>
> >>>>> I'd lean towards removal after gcc-13 releases.
> >>>>
> >>>> I think removing the ability to switch to the old implementation easens
> >>>> maintainance so I'd prefer to have this before the gcc-13 release.
> >>>>
> >>>> So please go ahead.
> >>>
> >>> Btw, ASSERT_EXPR should also go away with this, no?
> >>
> >> Ah yes, for everything except ipa-*.* which uses it internally (and sets
> >> it in its internal structures):
> >>
> >> - ASSERT_EXPR means that only the value in operand is allowed to
> >> pass
> >> through (without any change), for all other values the result is
> >> unknown.
> >
> > Ick. But yeah, I can see how 'ASSERT_EXPR' looked nice to use here
> > (but it's only a distinct value, so TARGET_OPTION_NODE would have
> > worked here as well)
> >
> >> I can remove all other uses, including any externally visible documentation.
> >
> > Works for me.
>
> Documented and added change log entries. Retested on x86-64 Linux.
>
> There are three follow-up patches removing ASSERT_EXPR which I'll post
> shortly.
>
> OK for trunk?
OK.
Thanks,
Richard.
> Aldy
prev parent reply other threads:[~2022-11-23 20:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-21 16:35 Aldy Hernandez
2022-11-21 16:49 ` Jeff Law
2022-11-22 8:24 ` Richard Biener
2022-11-22 8:25 ` Richard Biener
2022-11-22 9:04 ` Aldy Hernandez
2022-11-22 9:22 ` Richard Biener
2022-11-22 13:40 ` Aldy Hernandez
2022-11-23 11:16 ` Aldy Hernandez
2022-11-23 20:09 ` 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=CAFiYyc2Aau2iHsDq5OfczM+Emgr4oeBJiHNQfXQX3ftxyvSY6g@mail.gmail.com \
--to=richard.guenther@gmail.com \
--cc=aldyh@redhat.com \
--cc=amacleod@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jakub@redhat.com \
--cc=jeffreyalaw@gmail.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).