| commit | bdb08ac50a1e6bfcba990068ba9bf1364337658f | [log] [tgz] |
|---|---|---|
| author | Chad Rosier <mcrosier@apple.com> | Tue Jul 10 17:45:53 2012 +0000 |
| committer | Chad Rosier <mcrosier@apple.com> | Tue Jul 10 17:45:53 2012 +0000 |
| tree | 5ad033a79263742ddf4978a11abaca1b082742fb | |
| parent | 60d7f5a1d72fb8eda4e294a3749fa0aad9ee997f [diff] |
Add support for dynamic stack realignment in the presence of dynamic allocas on X86. Basically, this is a reapplication of r158087 with a few fixes. Specifically, (1) the stack pointer is restored from the base pointer before popping callee-saved registers and (2) in obscure cases (see comments in patch) we must cache the value of the original stack adjustment in the prologue and apply it in the epilogue. rdar://11496434 llvm-svn: 160002