[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:36 PDT 2026


================
@@ -706,6 +706,32 @@ static bool supportsSPMDExecutionMode(ASTContext &Ctx,
       "Unknown programming model for OpenMP directive on NVPTX target.");
 }
 
+static bool isNoLoopEligible(ASTContext &Ctx, const OMPExecutableDirective &D) {
----------------
dhruvachak wrote:

This method is not expensive, so I don't see the need to cache. Using a cache hosted by the runtime for the current directive is non-intuitive and not future-proof. Please go back to the previous design.

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


More information about the cfe-commits mailing list