https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86019
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64 URL| |missed-optimization Component|c++ |target --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect memory_order_acquire is being treated as a compiler memory barrier and that is causing an empty basic block (it is not truly empty).