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

via flang-commits flang-commits at lists.llvm.org
Mon Mar 9 02:43:30 PDT 2026


https://github.com/jeanPerier approved this pull request.

Looks great thanks.
I would advise adding some small FIR tests that tests the if case and one with block CFGs that shows that the code is falling back to allocmem because this code will likely have very little real world coverage given how rare this situation is and also because stack allocation issue can be tricky to debug. So better have good regression tests here.

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


More information about the flang-commits mailing list