diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-10-29 15:01:58 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-10-29 15:01:58 +0000 |
commit | b50c46c594ad2038f51f51fdc1a3a7cfdb27b5c2 (patch) | |
tree | fd8017cdf60934681789f405f8f6eb085a0a2ea0 /test/OpenMP/taskloop_reduction_codegen.cpp | |
parent | 67c63cb9f6cb94fcc7ad47cc8a827ed243adab44 (diff) | |
download | clang-b50c46c594ad2038f51f51fdc1a3a7cfdb27b5c2.tar.gz |
[OPENMP] Do not capture private loop counters.
If the loop counter is not declared in the context of the loop and it is
private, such loop counters should not be captured in the outlined
regions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/taskloop_reduction_codegen.cpp')
-rw-r--r-- | test/OpenMP/taskloop_reduction_codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/OpenMP/taskloop_reduction_codegen.cpp b/test/OpenMP/taskloop_reduction_codegen.cpp index a9f79a5400..0eff06d886 100644 --- a/test/OpenMP/taskloop_reduction_codegen.cpp +++ b/test/OpenMP/taskloop_reduction_codegen.cpp @@ -147,7 +147,7 @@ sum = 0.0; // CHECK: [[DIV:%.*]] = sdiv i32 [[ADD11]], 1 // CHECK: [[SUB12:%.*]] = sub nsw i32 [[DIV]], 1 // CHECK: store i32 [[SUB12]], i32* [[DOTCAPTURE_EXPR_9]], -// CHECK: [[TMP65:%.*]] = call i8* @__kmpc_omp_task_alloc(%struct.ident_t* %{{.+}}, i32 [[TMP0]], i32 1, i64 888, i64 72, i32 (i32, i8*)* bitcast (i32 (i32, %struct.kmp_task_t_with_privates*)* @[[TASK:.+]] to i32 (i32, i8*)*)) +// CHECK: [[TMP65:%.*]] = call i8* @__kmpc_omp_task_alloc(%struct.ident_t* %{{.+}}, i32 [[TMP0]], i32 1, i64 888, i64 64, i32 (i32, i8*)* bitcast (i32 (i32, %struct.kmp_task_t_with_privates*)* @[[TASK:.+]] to i32 (i32, i8*)*)) // CHECK: call void @__kmpc_taskloop(%struct.ident_t* %{{.+}}, i32 [[TMP0]], i8* [[TMP65]], i32 1, i64* %{{.+}}, i64* %{{.+}}, i64 %{{.+}}, i32 1, i32 0, i64 0, i8* null) // CHECK: call void @__kmpc_end_taskgroup(%struct.ident_t* |