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: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 May 2012 21:45:49 +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 #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.