[Bug tree-optimization/95729] Failure to optimize away certain returns when the condition to reach them is a calculation that already results in that value

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 18 08:39:06 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95729

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-06-18
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  Sth for phiopt and/or a cond_expr match.pd pattern (which phiopt
could exercise btw).  a != b ? a - b : 0  -> a - b


More information about the Gcc-bugs mailing list