]> granicus.if.org Git - clang/commit
[OPENMP] Fixed codegen for 'omp cancel' construct.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 15 Nov 2016 09:11:50 +0000 (09:11 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 15 Nov 2016 09:11:50 +0000 (09:11 +0000)
commitf2849bb243c47208a2e052857cd5e9455cd0e54c
tree28ff4784c9f1ad70aca4c609d4d165b4d4ffdc6b
parente7feaec187f11d4bd61dd100d339a87da952ba0b
[OPENMP] Fixed codegen for 'omp cancel' construct.

If 'omp cancel' construct is used in a worksharing construct it may cause
hanging of the software in case if reduction clause is used. Patch fixes
this problem by avoiding extra reduction processing for branches that
were canceled.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286944 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
test/OpenMP/cancel_codegen.cpp