[flang-commits] [flang] [flang] Decouple HLFIR array expansion from optimization level (PR #233478)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 19 13:47:54 PDT 2026


================
@@ -1,17 +1,19 @@
-! Regression test for the follow-up to PR llvm/llvm-project#197092.
-!
-! At -O0 on the host (no OpenMP target-device compilation), a scalar-to-array
-! broadcast assignment must lower to a Fortran runtime call
-! (_FortranAAssign), not to an inline assignment loop. Lowering it inline
-! at -O0 caused -g line breakpoints to hit once per array element instead
-! of once.
+! Scalar-to-array broadcast assignments are expanded inline even at -O0
+! on the host (no OpenMP target-device compilation).
 
-! RUN: %flang_fc1 -emit-fir -O0 %s -o - | FileCheck %s
+! RUN: %flang_fc1 -emit-fir -O0 %s -o - | FileCheck %s --implicit-check-not=_FortranAAssign
----------------
jeanPerier wrote:

Moved the test to Integration and require exactly one is_stmt row for the assignment line,
including a negative check for additional statement rows. The array-runtime
test still covers the generated loop.

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


More information about the flang-commits mailing list