diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-16 14:01:00 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-16 14:01:00 +0000 |
commit | aee18557f7b2c9b446ffd8718a9938d8c8069526 (patch) | |
tree | b57d6759279ee5804282812dbb6adcea6dd75900 /clang/test/OpenMP/for_simd_codegen.cpp | |
parent | ff64aa514b707cb42013f9389bac7535c7d2cef4 (diff) | |
download | bcm5719-llvm-aee18557f7b2c9b446ffd8718a9938d8c8069526.tar.gz bcm5719-llvm-aee18557f7b2c9b446ffd8718a9938d8c8069526.zip |
[OPRNMP] Fix for PR33445: ICE: OpenMP target containing ordered for.
If exceptions are enabled, there may be a problem with the codegen of
the finalization functions from OpenMP runtime. It happens because of
the problem with the getting of thread identifier value. Patch tries to
fix it by using the result of the call of function
__kmpc_global_thread_num() rather than loading of value of outlined
function parameter.
llvm-svn: 311007
Diffstat (limited to 'clang/test/OpenMP/for_simd_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/for_simd_codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/for_simd_codegen.cpp b/clang/test/OpenMP/for_simd_codegen.cpp index 89f779db33c..e33bfe4a575 100644 --- a/clang/test/OpenMP/for_simd_codegen.cpp +++ b/clang/test/OpenMP/for_simd_codegen.cpp @@ -673,7 +673,7 @@ int bar() {return 0;}; void parallel_simd(float *a) { #pragma omp parallel #pragma omp for simd - // TERM_DEBUG-NOT: __kmpc_global_thread_num + // TERM_DEBUG: __kmpc_global_thread_num // TERM_DEBUG: invoke i32 {{.*}}bar{{.*}}() // TERM_DEBUG: unwind label %[[TERM_LPAD:.+]], // TERM_DEBUG-NOT: __kmpc_global_thread_num |