[clang] [llvm] [clang][OpenMP] Add no-loop SPMD kernel promotion (PR #224041)

Dhruva Chakrabarti via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 13 23:04:35 PDT 2026


================
@@ -6540,6 +6593,8 @@ void CodeGenFunction::EmitOMPDistributeLoop(const OMPLoopDirective &S,
           !isOpenMPParallelDirective(S.getDirectiveKind()) &&
           !isOpenMPTeamsDirective(S.getDirectiveKind()))
         EmitOMPReductionClauseInit(S, LoopScope);
+
+      const bool NoLoopKernel = CGM.getOpenMPRuntime().canPromoteToNoLoop();
----------------
dhruvachak wrote:

The loop directive is available right there to be passed into the query.

https://github.com/llvm/llvm-project/pull/224041


More information about the cfe-commits mailing list