diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2018-03-06 18:59:43 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-03-06 18:59:43 +0000 |
| commit | 1c44e15f6d1fc2bcf4b2e0bf9014570ce42e3ff7 (patch) | |
| tree | 9c651111187e5a6c82d4a2eaf6102b1d36582928 /clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp | |
| parent | 274e08dd81aaa557cb5a177577c034459f12158d (diff) | |
| download | bcm5719-llvm-1c44e15f6d1fc2bcf4b2e0bf9014570ce42e3ff7.tar.gz bcm5719-llvm-1c44e15f6d1fc2bcf4b2e0bf9014570ce42e3ff7.zip | |
[OPENMP] Fix generation of the unique names for task reduction
variables.
If the task has reduction construct and this construct for some variable
requires unique threadprivate storage, we may generate different names
for variables used in taskgroup task_reduction clause and in task
in_reduction clause. Patch fixes this problem.
llvm-svn: 326827
Diffstat (limited to 'clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp')
| -rw-r--r-- | clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp b/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp index 29c1f46c8af..bf0dd9b0967 100644 --- a/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp +++ b/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp @@ -12,6 +12,9 @@ #ifndef HEADER #define HEADER +// CHECK-DAG: @reduction_size.[[ID:.+]]_[[CID:[0-9]+]].artificial. +// CHECK-DAG: @reduction_size.[[ID]]_[[CID]].artificial..cache. + struct S { int a; S() : a(0) {} @@ -21,7 +24,6 @@ struct S { friend S operator+(const S&a, const S&b) {return a;} }; - int main(int argc, char **argv) { int a; float b; |

