https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96963
--- Comment #3 from Gavin <gcc_bugzilla at venus dot thegavinli.com> --- Correct. Due to store-merging, -O2 and -O3 generate the same machine code on both x86_64 and armv7m.
gcc_bugzilla at venus dot thegavinli.com Tue, 08 Sep 2020 01:19:20 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96963
--- Comment #3 from Gavin <gcc_bugzilla at venus dot thegavinli.com> --- Correct. Due to store-merging, -O2 and -O3 generate the same machine code on both x86_64 and armv7m.