]> granicus.if.org Git - clang/commit
Merging r258307 and r258495:
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 29 Jan 2016 05:14:10 +0000 (05:14 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 29 Jan 2016 05:14:10 +0000 (05:14 +0000)
commit42788d24ed06f441962cc858853a9debf49ac0e2
tree2c5014a81ce6129910b1e12feed80c4ad9b03e58
parent11f818d8c60f5dc1bef681640b71c756bc72b168
Merging r258307 and r258495:
------------------------------------------------------------------------
r258307 | abataev | 2016-01-20 15:29:47 +0300 (Wed, 20 Jan 2016) | 3 lines

[OPENMP 4.0] Fix for codegen of 'cancel' directive within 'sections' directive.
Allow to emit code for 'cancel' directive within 'sections' directive with single sub-section.

------------------------------------------------------------------------
r258495 | abataev | 2016-01-22 11:56:50 +0300 (Fri, 22 Jan 2016) | 3 lines

[OPENMP] Generalize codegen for 'sections'-based directive.
If 'sections' directive has only one sub-section, the code for 'single'-based directive was emitted. Removed this codegen, because it causes crashes in different cases.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_38@259160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/cancel_codegen.cpp
test/OpenMP/cancellation_point_codegen.cpp
test/OpenMP/parallel_sections_codegen.cpp
test/OpenMP/sections_codegen.cpp
test/OpenMP/sections_firstprivate_codegen.cpp
test/OpenMP/sections_lastprivate_codegen.cpp
test/OpenMP/sections_private_codegen.cpp
test/OpenMP/sections_reduction_codegen.cpp