libstdc++: Minor codegen improvement for atomic wait spinloop
authorThomas Rodgers <trodgers@redhat.com>
Wed, 6 Jul 2022 00:42:42 +0000 (17:42 -0700)
committerThomas Rodgers <trodgers@redhat.com>
Tue, 26 Jul 2022 22:28:02 +0000 (15:28 -0700)
commitf281d9dd1ed63825efa234df63d3f2ae6cc9022a
tree55d4c65f83226446c00bd05470bd60f437c11007
parent81a0fa31ce96327618023b476ea121dbe2494b04
libstdc++: Minor codegen improvement for atomic wait spinloop

This patch merges the spin loops in the atomic wait implementation which is a
minor codegen improvement.

libstdc++-v3/ChangeLog:
* include/bits/atomic_wait.h (__atomic_spin): Merge spin loops.

(cherry picked from commit e75da2ace6b6f634237259ef62cfb2d3d34adb10)
libstdc++-v3/include/bits/atomic_wait.h