This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30318] VRP does not create ANTI_RANGEs on overflow
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 May 2012 08:51:06 +0000
- Subject: [Bug tree-optimization/30318] VRP does not create ANTI_RANGEs on overflow
- Auto-submitted: auto-generated
- References: <bug-30318-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30318
--- Comment #13 from rguenther at suse dot de <rguenther at suse dot de> 2012-05-07 08:51:06 UTC ---
On Fri, 4 May 2012, glisse at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30318
>
> --- Comment #8 from glisse at gcc dot gnu.org 2012-05-04 21:45:49 UTC ---
> Created attachment 27311
> --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27311
> Wrap plus/minus
>
> This patch handles combinations of range/anti_range for PLUS_EXPR and
> MINUS_EXPR. I'll try to do MULT_EXPR later so that for -10<i<10 and -10<j<10 we
> get the same range for (unsigned)(i*j) and (unsigned)i*(unsigned)j.
Btw, now that I have committed the TYPE_IS_SIZETYPE changes I have
some pending VRP patches that I like to push (I'm not sure if they
covert this, I have to revisit them first).