https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Is it really better to do a load and check rather than just hoist the first cmpxchg out of the loop, and add the pause in the loop if retrying?