diff options
| author | Manman Ren <manman.ren@gmail.com> | 2015-11-11 19:19:26 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2015-11-11 19:19:26 +0000 |
| commit | 14f88158c7a566deb37ff1104fda5928103cc0e4 (patch) | |
| tree | 278ca05a6e876ed66933941a9dd2442bd7509bd6 /clang/test/OpenMP/threadprivate_codegen.cpp | |
| parent | fc4e1c74abfae40c9288cdbc03506e14dbe03850 (diff) | |
| download | bcm5719-llvm-14f88158c7a566deb37ff1104fda5928103cc0e4.tar.gz bcm5719-llvm-14f88158c7a566deb37ff1104fda5928103cc0e4.zip | |
[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.
llvm-svn: 252777
Diffstat (limited to 'clang/test/OpenMP/threadprivate_codegen.cpp')
| -rw-r--r-- | clang/test/OpenMP/threadprivate_codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/threadprivate_codegen.cpp b/clang/test/OpenMP/threadprivate_codegen.cpp index 97678b4b666..53d7ef70838 100644 --- a/clang/test/OpenMP/threadprivate_codegen.cpp +++ b/clang/test/OpenMP/threadprivate_codegen.cpp @@ -939,9 +939,9 @@ int foobar() { // CHECK-TLS: define internal void @__tls_init() // CHECK-TLS: [[GRD:%.*]] = load i8, i8* @__tls_guard // CHECK-TLS-NEXT: [[IS_INIT:%.*]] = icmp eq i8 [[GRD]], 0 -// CHECK-TLS-NEXT: store i8 1, i8* @__tls_guard // CHECK-TLS-NEXT: br i1 [[IS_INIT]], label %[[INIT_LABEL:[^,]+]], label %[[DONE_LABEL:[^,]+]]{{.*}} // CHECK-TLS: [[INIT_LABEL]] +// CHECK-TLS-NEXT: store i8 1, i8* @__tls_guard // CHECK-TLS: call void [[GS1_CXX_INIT]] // CHECK-TLS-NOT: call void [[GS2_CXX_INIT]] // CHECK-TLS: call void [[ARR_X_CXX_INIT]] |

