summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/cxx11-thread-local.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2015-11-11 19:19:26 +0000
committerManman Ren <manman.ren@gmail.com>2015-11-11 19:19:26 +0000
commitcfb60e8fa6741edb1aab76b522fc75efc6d03178 (patch)
tree10c09a6fd8d0b14fb3d9231d701b9f564400990d /test/CodeGenCXX/cxx11-thread-local.cpp
parentc41a416b757c02e516c96ffa3fde9a28484cd584 (diff)
[TLS] move setting tls_guard in tls_init.
We used to emit the store prior to branch in the entry block. To make it more efficient, this commit moves it to the init block. We still mark as initialized before initializing anything else. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/cxx11-thread-local.cpp')
-rw-r--r--test/CodeGenCXX/cxx11-thread-local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/cxx11-thread-local.cpp b/test/CodeGenCXX/cxx11-thread-local.cpp
index e28447e01e..9d9d255dcb 100644
--- a/test/CodeGenCXX/cxx11-thread-local.cpp
+++ b/test/CodeGenCXX/cxx11-thread-local.cpp
@@ -173,9 +173,9 @@ void set_anon_i() {
// CHECK: define {{.*}}@__tls_init()
// CHECK: load i8, i8* @__tls_guard
// CHECK: %[[NEED_TLS_INIT:.*]] = icmp eq i8 %{{.*}}, 0
-// CHECK: store i8 1, i8* @__tls_guard
// CHECK: br i1 %[[NEED_TLS_INIT]],
// init:
+// CHECK: store i8 1, i8* @__tls_guard
// CHECK: call void @[[A_INIT]]()
// CHECK: call void @[[D_INIT]]()
// CHECK: call void @[[U_M_INIT]]()