https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38544
--- Comment #3 from Andrew Pinski ---
GCC, ICC, clang nor MSVC does this. Someone would need to look at the
instruction to see if it is valid to do for the C++11 memory model too. Does it
write to the memory location even without the add?
--- Comment #2 from ubizjak at gmail dot com 2008-12-17 08:58 ---
Setting Component to Generic RTL optimization.
--
ubizjak at gmail dot com changed:
What|Removed |Added
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Severity|normal |enhancement
Keywords||missed-op