[clang] [openmp] [Clang][OpenMP] Guard Inner flatten inits on enclosing loop trip counts (PR #237907)

Michael Kruse via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 04:52:40 PST 2026


https://github.com/Meinersbur commented:

The summary does not explain what the PreInit has to do with the final value. The `Finals` write after the loop is conditional on `BuildHasIterations`, but the PreInit was not, meanding the first assingment `J = 0` was always written, but never overwritten by `Finals`. Is this correct? If so could you include that in the summary and/or code comment?

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


More information about the cfe-commits mailing list