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

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Thu Mar 5 02:55:38 PST 2026


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

Thanks for the fix. As just the fix this LGTM.

Looking at this old code again, I think we could create much better allocation points by cloning any alloca arguments which are pure (e.g. arith.constant) and putting them into the entry block. But I think that is a problem for another patch.

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


More information about the flang-commits mailing list