commit | ac096808a3accc516ae7c193c9a2c1392bf3301a | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Tue Aug 10 19:30:19 2010 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Tue Aug 10 19:30:19 2010 +0000 |
tree | 7add14add83e0e065548a9ad801a591251ca6a83 | |
parent | 98197e55c10176c3ef9100f7d852abbd2347225f [diff] |
Re-apply r110655 with fixes. Epilogue must restore sp from fp if the function stack frame has a var-sized object. Also added a test case to check for the added benefit of this patch: it's optimizing away the unnecessary restore of sp from fp for some non-leaf functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110707 91177308-0d34-0410-b5e6-96231b3b80d8