This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1]
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2005 17:20:17 -0000
- Subject: [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1]
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Example:
int f(int i)
{
int t = i == 1;
int g = t == 2;
int h = g == 3;
return h;
}
We should convert this to return 0 on the tree level but currently we get:
return i == 1 == 2 == 3;
in final_cleanup
--
Summary: VRP does not say range for a in a = b == c; is [0,1]
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23603