]> granicus.if.org Git - clang/commit
[OpenMP] Limit reduction support for pragma 'distribute' when combined with pragma...
authorCarlo Bertolli <cbertol@us.ibm.com>
Thu, 22 Feb 2018 19:38:14 +0000 (19:38 +0000)
committerCarlo Bertolli <cbertol@us.ibm.com>
Thu, 22 Feb 2018 19:38:14 +0000 (19:38 +0000)
commitcb290147ed603c534383b202424a4184882c8273
tree1866c96f1de761dc1721b65bae0b1e90c4d8b343
parent2fe677a5fedec59733005d7158ff86bc761ec5c3
[OpenMP] Limit reduction support for pragma 'distribute' when combined with pragma 'simd'

Differential Revision: https://reviews.llvm.org/D43513

This is a bug fix that removes the emission of reduction support for pragma 'distribute' when found alone or in combinations without simd.
Pragma 'distribute' does not have a reduction clause, but when combined with pragma 'simd' we need to emit the support for simd's reduction clause as part of code generation for distribute. This guard is similar to the one used for reduction support earlier in the same code gen function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325822 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/distribute_parallel_for_reduction_codegen.cpp [new file with mode: 0644]