https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116972
--- Comment #2 from Yi <652023330028 at smail dot nju.edu.cn> --- (In reply to Andrew Pinski from comment #1) > This is not exactly a missed optimization. Rather the default settings for > the generic x86_64 is to use rep stosq for the memset of 0 rather than use > the vector registers to do the zeroing. > > If you use different-march= you see that. Thank you very much for your answer!