[flang-commits] [flang] [Flang][OpenMP] Skip DSA for canonical loops (PR #150593)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Mon Jul 28 07:58:51 PDT 2025


Meinersbur wrote:

> Do we use canonical loop ops for `do` or `loop`? If not now, are we going to?

It is the long-term plan, intially protected by a flag until it matures.

> This looks good for loop transformation ops, but I'm wondering if the canonical loop ops can be used beyond those.

Yes, e.g. the OpenMPIRBuilder already implements worksharing-loop like a transformation: `applyWorkshareLoop`. It also needed for supporting non-rectangular loop nests and non-perfectly nested loops.

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


More information about the flang-commits mailing list