diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-18 10:24:53 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-18 10:24:53 +0000 |
commit | 6f531ec0a2510d07fe592e2a7698733bbb45f519 (patch) | |
tree | c1630c4f50f43fe62d55449d9781b27338428b22 /clang/test/OpenMP/cancellation_point_codegen.cpp | |
parent | 252cca555f3c9b0958573092873f239430dd47fe (diff) | |
download | bcm5719-llvm-6f531ec0a2510d07fe592e2a7698733bbb45f519.tar.gz bcm5719-llvm-6f531ec0a2510d07fe592e2a7698733bbb45f519.zip |
[OPENMP] Remove explicit call for implicit barrier
#pragma omp parallel needs an implicit barrier that is currently done by an explicit call to __kmpc_barrier. However, the runtime already ensures a barrier in __kmpc_fork_call which currently leads to two barriers per region per thread.
Differential Revision: http://reviews.llvm.org/D15561
llvm-svn: 255992
Diffstat (limited to 'clang/test/OpenMP/cancellation_point_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/cancellation_point_codegen.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/test/OpenMP/cancellation_point_codegen.cpp b/clang/test/OpenMP/cancellation_point_codegen.cpp index ee557fd065d..795f69ed24f 100644 --- a/clang/test/OpenMP/cancellation_point_codegen.cpp +++ b/clang/test/OpenMP/cancellation_point_codegen.cpp @@ -129,7 +129,6 @@ for (int i = 0; i < argc; ++i) { // CHECK: call i32 @__kmpc_single( // CHECK-NOT: @__kmpc_cancellationpoint // CHECK: call void @__kmpc_end_single( -// CHECK: call void @__kmpc_barrier(%ident_t* // CHECK: ret void // CHECK: define internal void @{{[^(]+}}(i32* {{[^,]+}}, i32* {{[^,]+}}) @@ -164,7 +163,6 @@ for (int i = 0; i < argc; ++i) { // CHECK: [[CONTINUE]] // CHECK: br label // CHECK: call void @__kmpc_for_static_fini( -// CHECK: call void @__kmpc_barrier(%ident_t* // CHECK: ret void #endif |