[flang-commits] [flang] [flang] Fix crash when GoTo exits acc.loop region (PR #187613)
via flang-commits
flang-commits at lists.llvm.org
Fri Mar 20 06:26:14 PDT 2026
https://github.com/jeanPerier commented:
> This solution only resolves the crash and isn't sufficient yet to properly reproduce the original jumps. I have to find a proper way to handle those.
If avoiding the crash is the main concern, I think it is better to insert a TODO, as you pointed out and as mentioned in my comment, the situation is more complex and you need to have the acc.loop returning a "branching code" and insert the jump after the loop to properly cover the different cases.
Dropping the acc.loop all together is also a bit problematic because it is used to carry the data directive that it may have (even if sequential).
https://github.com/llvm/llvm-project/pull/187613
More information about the flang-commits
mailing list