[llvm-dev] [RFC] lld: Dropping TLS relaxations in favor of TLSDESC
Joerg Sonnenberger via llvm-dev
llvm-dev at lists.llvm.org
Thu Nov 9 05:15:16 PST 2017
On Wed, Nov 08, 2017 at 12:46:20PM -0800, Rui Ueyama via llvm-dev wrote:
> So, looks like there are programs in where TLS relaxation actually matters.
> It is interesting that both examples mentioned in this threads are
> graphics-related (OpenGL and games). I wonder if it is a coincidence or it
> is a common practice to use thread-local variables heavily in graphics. I
> haven't wrote any games before, so it is likely that I don't know some
> basics in that area.
In the OpenGL case it is primary an effect of retrofitting thread-safety
into existing APIs. Just like some systems retrofit many of the
non-reentrant libc functions by using thread-local storage for the
More information about the llvm-dev