[flang-commits] [flang] [flang] Restrict O0 hlfir.assign scalar-to-array inlining to OpenMP target device (PR #201774)

Sairudra More via flang-commits flang-commits at lists.llvm.org
Sat Jun 6 10:52:12 PDT 2026


Saieiei wrote:

Hi @abidh, addressed.

I kept the `-O1` coverage for the `omp.wsloop` shape and added explicit `-O0` coverage for the host/non-target behavior. The `-O0` checks now verify that the relevant scalar broadcast path falls back to `_FortranAAssign`, while the target-device `-O0` regression test still checks that `_FortranAAssign` is avoided.

I also opened a follow-up issue for the broader debug-location problem in generated inline assignment loops: #202065.

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


More information about the flang-commits mailing list