[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2022-09-23 Thread roi.jacobson1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 --- Comment #9 from Roy Jacobson --- Thanks for the patch! I wonder if it would handle coroutines correctly. Clang has this open bug https://github.com/llvm/llvm-project/issues/47179 that is related to this optimization.

[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2022-08-18 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 --- Comment #8 from H.J. Lu --- Created attachment 53473 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53473&action=edit A patch This patch uses a single UNSPEC_TLS_LD_BASE in the whole function.

[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2022-08-17 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 --- Comment #7 from Yann Droneaud --- (In reply to Roy Jacobson from comment #6) > We recently upgraded our toolchain from GCC9 to GCC11, and we're seeing > __tls_get_addr take up to 10% of total runtime under some workloads, where > it was 1-2%

[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2022-08-17 Thread roi.jacobson1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 Roy Jacobson changed: What|Removed |Added CC||roi.jacobson1 at gmail dot com --- Commen

[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 Andrew Pinski changed: What|Removed |Added Summary|Unneccessary calls to |mulitple calls to |__t