r343483 - [OPENMP] Simplify code, NFC.

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 1 07:40:06 PDT 2018


Author: abataev
Date: Mon Oct  1 07:40:06 2018
New Revision: 343483

URL: http://llvm.org/viewvc/llvm-project?rev=343483&view=rev
Log:
[OPENMP] Simplify code, NFC.

Modified:
    cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp

Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp?rev=343483&r1=343482&r2=343483&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp Mon Oct  1 07:40:06 2018
@@ -781,10 +781,8 @@ static bool supportsSPMDExecutionMode(AS
   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:




More information about the cfe-commits mailing list