https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114797
--- Comment #2 from XChy <xxs_chy at outlook dot com> --- It looks like for completely overlapped memset, it's merged: https://godbolt.org/z/4r7Eqr1Ee With clobber, that's not the case: https://godbolt.org/z/8jhaEbKqo