[flang-commits] [flang] [flang][OpenMP] Enable lastprivate with collapse (PR #93778)

David Truby via flang-commits flang-commits at lists.llvm.org
Thu Jul 18 07:33:53 PDT 2024


DavidTruby wrote:

Hi, just removing the current check doesn't quite do the right thing, as the value of the lastprivate variable will be a random one of the last values of the inner loops, rather than the definite final one. To implement this we need to check that we have reached the final value of _all_ the loop indices, not just the outer one.

I've submitted a patch with this approach here: #99500

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


More information about the flang-commits mailing list