alexey-bataev wrote: @jsjodin looks like this patch breaks handlong of collapse clause in target-based directives. E.g. last test in test/Lower/OpenMP/distribute-parallel-do-simd.f90 shall emit collapse attribute, but it it is not. https://github.com/llvm/llvm-project/pull/143715