[Bug tree-optimization/89263] Simplify bool expression to OR

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 9 10:16:00 GMT 2019


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I thought I have this one filed before but I can't find it.

Basically we need to convert a != 0 ? true : b != 0 into a != 0 | b != 0 which
then will be a | b as != is not needed for boolean types.


More information about the Gcc-bugs mailing list