[flang-commits] [flang] [flang][OpenMP] Fix crash when a sliced array is specified in a forall within a workshare construct (PR #170913)

Carlos Seo via flang-commits flang-commits at lists.llvm.org
Wed Mar 4 08:43:07 PST 2026


ceseo wrote:

@tblah your testcase exposed two issues:

1. isSafeToParallelize needs to be more generic to handle hlfir.assign too.
2. The new helper isOpenMPThreadLocalMemory the case where alias analysis marks a private clause variable as
  SourceKind::Allocate.

The new branch fixes these two cases. I also added an extra test that checks if hlfir.assign to a private variable through hlfir.declare is not wrapped in omp.single.

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


More information about the flang-commits mailing list