https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102958
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-11-25
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, interesting we don't detect this as strlen:
<bb 3> [local count: 8687547547]:
# __i_155 = PHI <__i_46(3), 0(2)>
__i_46 = __i_155 + 1;
_48 = MEM[(const char_type &)"123456789" + __i_46 * 1];
if (_48 != 0)
goto <bb 3>; [89.00%]
else
goto <bb 4>; [11.00%]
I thought there was code to do that dection now?