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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot 
gnu.org

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am going to implement this for GCC 16. forwprop seems like a reasonible
place.

Basically for a strlen statement that is only used with a comparison with
`==/!= 0` get both replaced with `*a ==/!= 0`. Note since result of strlen is
unsigned we don't need to handle `>= 1` or `> 1` since those will be replaced
with `!= 0`.

Reply via email to