[Bug tree-optimization/85375] possible missed optimisation / regression from 6.3 with while (__builtin_ffs(x) && x)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 5 00:03:16 GMT 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |10.3.0
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=95527
   Target Milestone|---                         |11.0
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
      Known to work|                            |11.1.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
After r11-1080 (PR 95527), __builtin_ffs(x) && x becomes just x != 0 and
optimized.

So yes fixed for GCC 11.


More information about the Gcc-bugs mailing list