]> granicus.if.org Git - clang/commit
[TLS] move setting tls_guard in tls_init.
authorManman Ren <manman.ren@gmail.com>
Wed, 11 Nov 2015 19:19:26 +0000 (19:19 +0000)
committerManman Ren <manman.ren@gmail.com>
Wed, 11 Nov 2015 19:19:26 +0000 (19:19 +0000)
commitcfb60e8fa6741edb1aab76b522fc75efc6d03178
tree10c09a6fd8d0b14fb3d9231d701b9f564400990d
parentc41a416b757c02e516c96ffa3fde9a28484cd584
[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
lib/CodeGen/CGDeclCXX.cpp
test/CodeGenCXX/cxx11-thread-local.cpp
test/OpenMP/threadprivate_codegen.cpp