[Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 13 06:33:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14792

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |ASSIGNED
         Depends on|                            |31531
         Resolution|FIXED                       |

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-13 06:32:37 UTC ---
(In reply to comment #11)
> Actually just closing this as fixed.

Actually reopen for now, I have a partly better patch where we don't depend on
forwprop folding (int)b & 1 into (int)(b&1).



More information about the Gcc-bugs mailing list