diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2016-11-16 01:01:22 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2016-11-16 01:01:22 +0000 |
| commit | 2d15858e406fa13fe5e1444aa49b5567cd18fcea (patch) | |
| tree | c197431fd92e7cf23e042624477b7573daeac3f7 /clang/test/OpenMP/cancel_codegen.cpp | |
| parent | 4031e4b95d2e96a6dc607eb37ee1cc6ed6ce2389 (diff) | |
| download | bcm5719-llvm-2d15858e406fa13fe5e1444aa49b5567cd18fcea.tar.gz bcm5719-llvm-2d15858e406fa13fe5e1444aa49b5567cd18fcea.zip | |
Revert "[OPENMP] Fixed codegen for 'omp cancel' construct."
Summary:
r286944 introduced bugs detected by ASAN as use-after-return.
r287025 have not fixed them completely.
This reverts commit r286944 and r287025.
Reviewers: ABataev
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D26720
llvm-svn: 287069
Diffstat (limited to 'clang/test/OpenMP/cancel_codegen.cpp')
| -rw-r--r-- | clang/test/OpenMP/cancel_codegen.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/test/OpenMP/cancel_codegen.cpp b/clang/test/OpenMP/cancel_codegen.cpp index 768d2c0bd7a..fb0a4dd54a2 100644 --- a/clang/test/OpenMP/cancel_codegen.cpp +++ b/clang/test/OpenMP/cancel_codegen.cpp @@ -90,11 +90,9 @@ for (int i = 0; i < argc; ++i) { } } // CHECK: call void (%ident_t*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call( -int r = 0; -#pragma omp parallel for reduction(+:r) +#pragma omp parallel for for (int i = 0; i < argc; ++i) { #pragma omp cancel for - r += i; } // CHECK: call void (%ident_t*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call( return argc; @@ -165,9 +163,6 @@ for (int i = 0; i < argc; ++i) { // CHECK: [[CONTINUE]] // CHECK: br label // CHECK: call void @__kmpc_for_static_fini( -// CHECK: call i32 @__kmpc_reduce_nowait( -// CHECK: call void @__kmpc_end_reduce_nowait( -// CHECK: call void @__kmpc_for_static_fini( // CHECK: ret void #endif |

