Don't insert lifetime.end markers between a musttail call and ret
authorReid Kleckner <reid@kleckner.net>
Thu, 15 May 2014 20:39:13 +0000 (20:39 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 15 May 2014 20:39:13 +0000 (20:39 +0000)
commit24a50c5797d0d2a79348cc484ed8cf65ca52d530
tree9e19fdaed6cc40ac425b14a5cb371af418ebb6b2
parent44623e8781332f730872af3bbb332d54a574034f
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.

Reviewers: chandlerc

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

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