Don't insert lifetime.end markers between a musttail call and ret
authorReid Kleckner <reid@kleckner.net>
Thu, 15 May 2014 21:10:46 +0000 (21:10 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 15 May 2014 21:10:46 +0000 (21:10 +0000)
commit48ea98d1d228dfc58f9662473a4253c052c44b03
treec9ac261563698d551e1f7db7e438746d34045617
parentcf7cfd8208f2ca52e86a9c0fb1fa73d1f5b553e3
Don't insert lifetime.end markers between a musttail call and ret

The allocas going out of scope are immediately killed by the return
instruction.

This is a resend of r208912, which was committed accidentally.

Reviewers: chandlerc

Differential Revision: http://reviews.llvm.org/D3792

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208920 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/inline-tail.ll