jrtc27 added a comment. You should really implement proper TLS. Emulated TLS is a lazy, inefficient hack. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102527/new/ https://reviews.llvm.org/D102527