https://github.com/efriedma-quic commented: This looks basically right, although I haven't examined it in detail. Please make sure we have test coverage for allocas with alignment greater than 16. https://github.com/llvm/llvm-project/pull/191616