[Bug tree-optimization/98954] ((X << CST0) & CST1) == 0 is not optimized to 0 == (X & (CST1 >> CST0))

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 1 05:49:37 GMT 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #50271|0                           |1
        is obsolete|                            |

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 51911
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51911&action=edit
New patch

New partial patch, still need testcases. But this fixes this bug, PR 98956 and
PR 64992 .


More information about the Gcc-bugs mailing list