[flang-commits] [flang] [flang] Fix stack-arrays pass moving alloca across stackrestore scope (PR #184727)

via flang-commits flang-commits at lists.llvm.org
Thu Mar 5 03:40:31 PST 2026


================
@@ -0,0 +1,33 @@
+! Regression test for https://github.com/llvm/llvm-project/issues/178821
----------------
jeanPerier wrote:

You can keep this test if you want, but I would favor a pure FIR to FIR tests where we can easily see that the bad pattern is here in the input (can be very simple and manually generated).

Otherwise if for any reason the passes before StackArrays stop generating the tricky patterns, the test you have will become pointless.

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


More information about the flang-commits mailing list