summaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/inline-tail.ll
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-05-15 20:41:05 +0000
committerReid Kleckner <reid@kleckner.net>2014-05-15 20:41:05 +0000
commitcf7cfd8208f2ca52e86a9c0fb1fa73d1f5b553e3 (patch)
tree46eb770613926b9f47432bfe76c164051abede0a /test/Transforms/Inline/inline-tail.ll
parenta9bef412755f772b5a523f31f3c81e8a9a61eeca (diff)
downloadllvm-cf7cfd8208f2ca52e86a9c0fb1fa73d1f5b553e3.tar.gz
llvm-cf7cfd8208f2ca52e86a9c0fb1fa73d1f5b553e3.tar.bz2
llvm-cf7cfd8208f2ca52e86a9c0fb1fa73d1f5b553e3.tar.xz
Revert "Don't insert lifetime.end markers between a musttail call and ret"
This reverts commit r208912. It was committed accidentally without review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Inline/inline-tail.ll')
-rw-r--r--test/Transforms/Inline/inline-tail.ll36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/Transforms/Inline/inline-tail.ll b/test/Transforms/Inline/inline-tail.ll
index b40328e0a2..565491adf5 100644
--- a/test/Transforms/Inline/inline-tail.ll
+++ b/test/Transforms/Inline/inline-tail.ll
@@ -49,42 +49,6 @@ define void @test_musttail_basic_a(i32* %p) {
ret void
}
-; Don't insert lifetime end markers here, the lifetime is trivially over due
-; the return.
-; CHECK: define void @test_byval_a(
-; CHECK: musttail call void @test_byval_c(
-; CHECK-NEXT: ret void
-
-declare void @test_byval_c(i32* byval %p)
-define internal void @test_byval_b(i32* byval %p) {
- musttail call void @test_byval_c(i32* byval %p)
- ret void
-}
-define void @test_byval_a(i32* byval %p) {
- musttail call void @test_byval_b(i32* byval %p)
- ret void
-}
-
-; Don't insert a stack restore, we're about to return.
-; CHECK: define void @test_dynalloca_a(
-; CHECK: call i8* @llvm.stacksave(
-; CHECK: alloca i8, i32 %n
-; CHECK: musttail call void @test_dynalloca_c(
-; CHECK-NEXT: ret void
-
-declare void @escape(i8* %buf)
-declare void @test_dynalloca_c(i32* byval %p, i32 %n)
-define internal void @test_dynalloca_b(i32* byval %p, i32 %n) alwaysinline {
- %buf = alloca i8, i32 %n ; dynamic alloca
- call void @escape(i8* %buf) ; escape it
- musttail call void @test_dynalloca_c(i32* byval %p, i32 %n)
- ret void
-}
-define void @test_dynalloca_a(i32* byval %p, i32 %n) {
- musttail call void @test_dynalloca_b(i32* byval %p, i32 %n)
- ret void
-}
-
; We can't merge the returns.
; CHECK: define void @test_multiret_a(
; CHECK: musttail call void @test_multiret_c(