]> granicus.if.org Git - clang/commit
[TLS on Darwin] use CXX_FAST_TLS calling convention for tls_init.
authorManman Ren <manman.ren@gmail.com>
Fri, 18 Mar 2016 23:35:21 +0000 (23:35 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 18 Mar 2016 23:35:21 +0000 (23:35 +0000)
commita795333934bec106f2dde66447c58f3bf33556c0
treefcb0bbdb9b51d6c6e09b6e8da2a7129dc4c473c4
parent4bbdb724f0cadb934108f8f57e2f50f025ddcaa1
[TLS on Darwin] use CXX_FAST_TLS calling convention for tls_init.

This makes sure we don't generate a lot of code to spill/reload
CSRs when calling tls_init from the access functions.

This helps performance when tls_init is not inlined into the access
functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263854 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGenCXX/cxx11-thread-local-reference.cpp
test/CodeGenCXX/cxx11-thread-local.cpp