https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93916
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2020-02-25 Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- I think the behavior you see is perfectly valid. Also Andrews comment is valid, the memset is very likely elided.