[flang-commits] [flang] [flang][acc] Fix the indexing of the reduction initializer for multidimensional static arrays (PR #159848)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Fri Sep 19 16:54:40 PDT 2025
================
@@ -587,6 +587,7 @@ mlir::Value OpenACCMappableModel<Ty>::generatePrivateInit(
loops.push_back(loop);
ivs.push_back(loop.getInductionVar());
}
+ std::reverse(ivs.begin(), ivs.end());
----------------
razvanlupusoru wrote:
Can you please add a comment why the IVs are being reverted?
https://github.com/llvm/llvm-project/pull/159848
More information about the flang-commits
mailing list