https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116383
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am not sure this is a wanted optimization. Note I also think the original code is questionable and maybe even has a race condition in it. >but on-thread reads should be safe using ordinary loads, I don't think that is valid thing to do.