[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)
commitbeda214996f6b4ed426490ed853bf0a5912a2c7d
tree3848d5b125b6ddb4b5901b3e35857c9e08b4d582
parent401b2a463c1230dcae12472457d6fce5176a8c29
[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.

llvm-svn: 325822
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/distribute_parallel_for_reduction_codegen.cpp [new file with mode: 0644]