[Bug middle-end/30521] "if (i == n) ++i;" or "i += i == n;"?
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 4 01:45:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30521
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-04 01:44:32 UTC ---
We could do this at the tree level. First do add a late PHIOPT which does the
conversion to a COND_EXPR and then simplify a?b+1:b into a+b. Likewise for
a?b+2:b+1 to a+b+1.
More information about the Gcc-bugs
mailing list