[Bug rtl-optimization/78778] non-atomic load moved to before atomic load with std::memory_order_acquire
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 13 07:29:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78778
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Component|c++ |rtl-optimization
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The gimple level looks fine:
<bb 3>:
_11 = __atomic_load_8 (pretmp_14, 2);
copy_5 = *value_4(D);
_9 = __atomic_load_8 (pretmp_14, 2);
if (_9 == _11)
goto <bb 4>;
else
goto <bb 3>;
More information about the Gcc-bugs
mailing list