[Bug tree-optimization/121357] memset could be optimized better for structs that don't need to be in memory
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 1 16:25:22 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121357
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Summary|Bad codegen when |memset could be optimized
|generically 1-filling a |better for structs that
|struct in C |don't need to be in memory
Component|middle-end |tree-optimization
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
_1 = __builtin_memset (&D.4595, 255, 8);
takeit (MEM[(struct it *)_1]);
D.4595 ={v} {CLOBBER(eos)};
More information about the Gcc-bugs
mailing list