[flang-commits] [flang] [flang][acc] Fix crash on collapse(force:N) with non-tightly nested loops (PR #191310)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Thu Apr 16 11:42:10 PDT 2026
================
@@ -3591,6 +3601,7 @@ class FirConverter : public Fortran::lower::AbstractConverter {
}
void genFIR(const Fortran::parser::OpenACCConstruct &acc) {
+ Fortran::lower::clearCollapsedDoConstructs();
----------------
razvanlupusoru wrote:
Please see my question below which asks for an additional test for ensuring collapsing is possible even if an inner loop is also marked with `acc loop`. This logic here might suggest it would not work.
https://github.com/llvm/llvm-project/pull/191310
More information about the flang-commits
mailing list