diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-10-05 15:08:53 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-10-05 15:08:53 +0000 |
commit | fd006c44eeffe1f018f7fda13eacb67a6606ec9c (patch) | |
tree | f109d0337a0888e5048c30920ed8e1cec54a72bd /clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp | |
parent | 00216bca66242fadfd22165d4efd1479d1d2ae82 (diff) | |
download | bcm5719-llvm-fd006c44eeffe1f018f7fda13eacb67a6606ec9c.tar.gz bcm5719-llvm-fd006c44eeffe1f018f7fda13eacb67a6606ec9c.zip |
[OPENMP] Fix emission of the __kmpc_global_thread_num.
Fixed emission of the __kmpc_global_thread_num() so that it is not
messed up with alloca instructions anymore. Plus, fixes emission of the
__kmpc_global_thread_num() functions in the target outlined regions so
that they are not called before runtime is initialized.
llvm-svn: 343856
Diffstat (limited to 'clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp b/clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp index 6c34e34ca58..d2c4b8b3113 100644 --- a/clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp +++ b/clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp @@ -52,11 +52,11 @@ sum = 0.0; // CHECK: [[C:%.*]] = alloca [100 x %struct.S], // CHECK: [[D:%.*]] = alloca float*, // CHECK: [[AGG_CAPTURED:%.*]] = alloca [[STRUCT_ANON:%.*]], -// CHECK: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(%struct.ident_t* // CHECK: [[DOTRD_INPUT_:%.*]] = alloca [4 x %struct.kmp_task_red_input_t], // CHECK: alloca i32, // CHECK: [[DOTCAPTURE_EXPR_:%.*]] = alloca i32, // CHECK: [[DOTCAPTURE_EXPR_9:%.*]] = alloca i32, +// CHECK: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(%struct.ident_t* // CHECK: store i32 0, i32* [[RETVAL]], // CHECK: store i32 [[ARGC:%.*]], i32* [[ARGC_ADDR]], // CHECK: store i8** [[ARGV:%.*]], i8*** [[ARGV_ADDR]], |