https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119458
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target| |x86_64-*-*
Version|unknown |15.0
Component|c++ |target
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think this works as designed, sub vs. dec is a target tuning decision. I'm
not sure whether atomics should behave special in any way here.