https://github.com/nikic requested changes to this pull request. I'm not interested in supporting dynamic allocas in this pass. Can you please limit this to allocas with known size? That should simplify your code a lot. https://github.com/llvm/llvm-project/pull/150792