[flang-commits] [flang] [flang] Inline scalar-to-array hlfir.assign at -O0 (PR #197092)
Sairudra More via flang-commits
flang-commits at lists.llvm.org
Tue May 12 04:04:53 PDT 2026
Saieiei wrote:
Thanks @jeanPerier, that makes sense. I revised the patch to keep the O0 behavior narrower.
At O0, `InlineHLFIRAssign` now only handles scalar-RHS to array-LHS broadcasts. Array-to-array assignments still fall back to `_FortranAAssign`, so the existing conformity checks/code-size/debug behavior is preserved.
At O1+, the full pass still runs as before, with scalar RHS support added.
https://github.com/llvm/llvm-project/pull/197092
More information about the flang-commits
mailing list