[Bug target/102202] Inefficent expansion of memset when range is [0,1]

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 5 01:21:05 GMT 2021


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Likewise for memcpy:
typedef decltype(sizeof(0)) size_t;
void g(size_t a, char *d, char *e)
{
  __builtin_memcpy(d, e, a&1);
}


More information about the Gcc-bugs mailing list