[Bug tree-optimization/95230] Failure to optimize bit-scatter pattern to and 1

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 20 08:50:27 GMT 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think the problem is:
1 & (1 << I) != 0
is not being transformed to I == 0 if I had the range of (0..31)

Once that happens, we could split the loop into I != 0 (1..31) and I == 0 cases
and the I != 0 case becomes empty.  Etc.


More information about the Gcc-bugs mailing list