[Bug target/104688] gcc and libatomic can use SSE for 128-bit atomic loads on Intel CPUs with AVX
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 5 12:35:27 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Besides missing AMD response, it isn't fully fixed, because the change is on
the libatomic side only.
So we still pay the cost to call those functions (and often PLT cost too) and
return from them.
For GCC 13, we should add some option that optionally reverts the change to use
library calls all the time, and default that option for -march= Intel CPUs with
AVX support or something similar (perhaps only if AVX is also enabled).
More information about the Gcc-bugs
mailing list