[flang-commits] [flang] [llvm] [mlir] [flang][MLIR][OpenMP] make reduction by-ref toggled per variable (PR #92244)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Thu May 16 03:46:08 PDT 2024
================
@@ -467,6 +468,10 @@ struct ParallelOpLowering : public OpRewritePattern<scf::ParallelOp> {
wsloopOp.setReductionsAttr(
ArrayAttr::get(rewriter.getContext(), reductionDeclSymbols));
wsloopOp.getReductionVarsMutable().append(reductionVariables);
+ llvm::SmallVector<bool> byRefVec;
+ byRefVec.resize(reductionVariables.size(), false);
----------------
kiranchandramohan wrote:
Nit: Add a comment why this is all `false`.
https://github.com/llvm/llvm-project/pull/92244
More information about the flang-commits
mailing list