https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102202
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Component|target |middle-end
Last reconfirmed| |2023-09-12
Status|UNCONFIRMED |ASSIGNED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I almost think for [0,1] range this should be handled in isel ...
Which basically does the conversion to a branch.
That is this __builtin_memset will be changed into:
if (size == 1) goto newbb;
else goto rest;
newbb:
*(char*)d = 0;
goto rest;
rest: