[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

CHANDRA GHALE via cfe-commits cfe-commits at lists.llvm.org
Tue May 20 07:49:28 PDT 2025


================
@@ -1481,6 +1482,8 @@ void CodeGenFunction::EmitOMPReductionClauseFinal(
     Privates.append(C->privates().begin(), C->privates().end());
     LHSExprs.append(C->lhs_exprs().begin(), C->lhs_exprs().end());
     RHSExprs.append(C->rhs_exprs().begin(), C->rhs_exprs().end());
+    IsPrivate.append(C->private_var_reduction_flags().begin(),
+                     C->private_var_reduction_flags().end());
----------------
chandraghale wrote:

Thanks for pointing, I have fixed it now.  Mix of private of non-private reduction is now correctly populating.

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


More information about the cfe-commits mailing list