summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/cxx11-thread-local-reference.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-03-18 23:35:21 +0000
committerManman Ren <manman.ren@gmail.com>2016-03-18 23:35:21 +0000
commita795333934bec106f2dde66447c58f3bf33556c0 (patch)
treefcb0bbdb9b51d6c6e09b6e8da2a7129dc4c473c4 /test/CodeGenCXX/cxx11-thread-local-reference.cpp
parent4bbdb724f0cadb934108f8f57e2f50f025ddcaa1 (diff)
[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
Diffstat (limited to 'test/CodeGenCXX/cxx11-thread-local-reference.cpp')
-rw-r--r--test/CodeGenCXX/cxx11-thread-local-reference.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGenCXX/cxx11-thread-local-reference.cpp b/test/CodeGenCXX/cxx11-thread-local-reference.cpp
index 048a0bd45a..4c1e5a70cb 100644
--- a/test/CodeGenCXX/cxx11-thread-local-reference.cpp
+++ b/test/CodeGenCXX/cxx11-thread-local-reference.cpp
@@ -23,11 +23,13 @@ int &g() { return r; }
// LINUX: define weak_odr hidden i32* @_ZTW1r() [[ATTR0:#[0-9]+]] {
// DARWIN: define cxx_fast_tlscc i32* @_ZTW1r() [[ATTR1:#[0-9]+]] {
-// CHECK: call void @_ZTH1r()
+// LINUX: call void @_ZTH1r()
+// DARWIN: call cxx_fast_tlscc void @_ZTH1r()
// CHECK: load i32*, i32** @r, align 8
// CHECK: ret i32* %{{.*}}
-// CHECK-LABEL: define internal void @__tls_init()
+// LINUX-LABEL: define internal void @__tls_init()
+// DARWIN-LABEL: define internal cxx_fast_tlscc void @__tls_init()
// CHECK: call void @[[R_INIT]]()
// LINUX: attributes [[ATTR0]] = { {{.*}}"target-features"{{.*}} }