[OPENMP] Simplify code, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 1 Oct 2018 14:40:06 +0000 (14:40 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 1 Oct 2018 14:40:06 +0000 (14:40 +0000)
llvm-svn: 343483

clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp

index 14fd4a3..833b145 100644 (file)
@@ -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: