From: Alexey Bataev Date: Mon, 1 Oct 2018 14:40:06 +0000 (+0000) Subject: [OPENMP] Simplify code, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1eed50e727bad4f9a991f862417a5f93f15f449a;p=clang [OPENMP] Simplify code, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343483 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index 14fd4a3113..833b145f04 100644 --- a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -781,10 +781,8 @@ static bool supportsSPMDExecutionMode(ASTContext &Ctx, case OMPD_target_parallel: case OMPD_target_parallel_for: case OMPD_target_parallel_for_simd: - return !hasParallelIfNumThreadsClause(Ctx, D); case OMPD_target_teams_distribute_parallel_for: case OMPD_target_teams_distribute_parallel_for_simd: - // Distribute with lastprivates requires non-SPMD execution mode. return !hasParallelIfNumThreadsClause(Ctx, D); case OMPD_target_simd: case OMPD_target_teams_distribute: