[Bug tree-optimization/92408] strlen(s) != 0 not folded into *s

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 15 23:27:52 GMT 2026


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easyhack
           Assignee|pinskia at gcc dot gnu.org         |unassigned at gcc dot gnu.org

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
use_in_zero_equality can be used to detect if the strlen is used with only
`!=/== 0`. Like it is done for memcmp in simplify_builtin_memcmp.

I am no longer working on this but can mentor someone to do it.


More information about the Gcc-bugs mailing list