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