[clang] [openmp] [Clang][OpenMP] Guard Inner flatten inits on enclosing loop trip counts (PR #237907)

Michael Kruse via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 04:52:41 PST 2026


================
@@ -142,4 +142,16 @@ extern "C" void mixed_sign(int n) {
       body((int)i, j);
 }
 
+// Empty outer loop: the outer init still runs, the inner init must not.
+// CHECK-LABEL: define {{.*}}void @empty_outer(
----------------
Meinersbur wrote:

It should check something from the function body, not just the function's existance

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


More information about the cfe-commits mailing list