summaryrefslogtreecommitdiff
path: root/test/OpenMP/taskloop_reduction_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-10-29 15:01:58 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-10-29 15:01:58 +0000
commitb50c46c594ad2038f51f51fdc1a3a7cfdb27b5c2 (patch)
treefd8017cdf60934681789f405f8f6eb085a0a2ea0 /test/OpenMP/taskloop_reduction_codegen.cpp
parent67c63cb9f6cb94fcc7ad47cc8a827ed243adab44 (diff)
downloadclang-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.cpp2
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*