[flang-commits] [flang] [flang][OpenMP] Fix unstrucuted control flow inside a collapsed wsloop (PR #77329)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 8 10:26:37 PST 2024


vdonaldson wrote:

[I'm on vacation until 1.16; responses may be slow]

Have you tried other code variations? An exit from or to an intermediate or outer loop in addition to an exit from the innermost loop? An exit that is not at the end of the loop body? Unstructured branches other than exit, such as a simple goto?

Since this is only needed for unstructured code, please add that to the condition, as in the prior degenerate/empty construct case. That also serves to document that restriction.

Is there some simple condition that can be checked to determine that the context is a collapsed loop? If yes, please consider adding that.

Please consider writing a more focused comment. One possibility: // Exit from a collapsed loop nest.

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


More information about the flang-commits mailing list