From: Jeff Law <law@redhat.com>
To: Aldy Hernandez <aldyh@redhat.com>,
Richard Biener <richard.guenther@gmail.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: undefined behavior in value_range::equiv_add()?
Date: Fri, 07 Jun 2019 19:26:00 -0000 [thread overview]
Message-ID: <0f9a14ae-9cb5-ab9b-a14d-2783a3fdc7f1@redhat.com> (raw)
In-Reply-To: <aec1486a-88ea-a4c1-0f87-3b9edfa6cd5a@redhat.com>
On 6/6/19 4:11 PM, Aldy Hernandez wrote:
>> Meanwhile I have bootstrapped / tested the following which does the VARYING
>>
>> thing.
>>
>> Applied to trunk.  I think we need to backport this since this is a latent
>>
>> wrong-code issue.  We can see to improve things on the trunk incrementally.
>>
>
> Folks, thanks so much for taking care of this.
>
> After Richard's patch, my value_range_base::intersect patch no longer
> fails on vrp47, and no longer requires a special-case for undefined.
>
> The attached patch splits out the intersect code into a value_range_base
> version, as we have for union_.
>
> OK?
>
> Aldy
>
> curr.patch
>
> gcc/
>
> * tree-vrp.h (value_range_base::intersect): New.
> (value_range::intersect_helper): Move from here...
> (value_range_base::intersect_helper): ...to here.
> * tree-vrp.c (value_range::intersect_helper): Rename to...
> (value_range_base::intersect_helper): ...this, and rewrite to
> return a value instead of modifying THIS in place.
> Also, move equivalence handling...
> (value_range::intersect): ...here, while calling intersect_helper.
> * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
> calling intersect.
> * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
> Same.
> * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
OK
jeff
next prev parent reply other threads:[~2019-06-07 19:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-29 12:28 Aldy Hernandez
2019-05-29 13:29 ` Richard Biener
2019-05-29 16:01 ` Aldy Hernandez
2019-05-29 16:15 ` Jeff Law
2019-05-29 16:20 ` Aldy Hernandez
2019-05-31 1:04 ` Jeff Law
2019-05-31 9:02 ` Richard Biener
2019-05-31 15:03 ` Jeff Law
2019-06-03 13:13 ` Aldy Hernandez
2019-06-03 22:30 ` Jeff Law
2019-06-04 11:23 ` Richard Biener
2019-06-04 13:40 ` Jeff Law
2019-06-04 15:04 ` Richard Biener
2019-06-05 21:12 ` Jeff Law
2019-06-06 7:31 ` Richard Biener
2019-06-06 17:38 ` Jeff Law
2019-06-06 22:11 ` Aldy Hernandez
2019-06-07 19:26 ` Jeff Law [this message]
2019-05-29 16:06 ` 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=0f9a14ae-9cb5-ab9b-a14d-2783a3fdc7f1@redhat.com \
--to=law@redhat.com \
--cc=aldyh@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@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).