aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/TailCallElim
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-22 18:16:14 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-22 18:16:14 +0000
commit0b06e2331eb549b53ac1e96d4878dfb0910b98f0 (patch)
tree053adc54915086410c56496aed52c8014201a9f1 /test/Transforms/TailCallElim
parente29c19091cca58db668407dfc5dd86c70e8b3d49 (diff)
Revert r166407 because it caused analyzer tests to crash and broke self-host bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/TailCallElim')
-rw-r--r--test/Transforms/TailCallElim/nocapture.ll23
1 files changed, 4 insertions, 19 deletions
diff --git a/test/Transforms/TailCallElim/nocapture.ll b/test/Transforms/TailCallElim/nocapture.ll
index 5a1a9a6e7c..87cb9dd427 100644
--- a/test/Transforms/TailCallElim/nocapture.ll
+++ b/test/Transforms/TailCallElim/nocapture.ll
@@ -1,9 +1,9 @@
; RUN: opt %s -tailcallelim -S | FileCheck %s
+; XFAIL: *
declare void @use(i8* nocapture, i8* nocapture)
-declare void @boring()
-define i8* @test1(i8* nocapture %A, i1 %cond) {
+define i8* @foo(i8* nocapture %A, i1 %cond) {
; CHECK: tailrecurse:
; CHECK: %A.tr = phi i8* [ %A, %0 ], [ %B, %cond_true ]
; CHECK: %cond.tr = phi i1 [ %cond, %0 ], [ false, %cond_true ]
@@ -14,27 +14,12 @@ define i8* @test1(i8* nocapture %A, i1 %cond) {
cond_true:
; CHECK: cond_true:
; CHECK: br label %tailrecurse
- call i8* @test1(i8* %B, i1 false)
+ call i8* @foo(i8* %B, i1 false)
ret i8* null
cond_false:
; CHECK: cond_false
call void @use(i8* %A, i8* %B)
-; CHECK: call void @use(i8* %A.tr, i8* %B)
- call void @boring()
-; CHECK: tail call void @boring()
+; CHECK: tail call void @use(i8* %A.tr, i8* %B)
ret i8* null
; CHECK: ret i8* null
}
-
-; PR14143
-define void @test2(i8* %a, i8* %b) {
-; CHECK: @test2
-; CHECK-NOT: tail call
-; CHECK: ret void
- %c = alloca [100 x i8], align 16
- %tmp = bitcast [100 x i8]* %c to i8*
- call void @llvm.memcpy.p0i8.p0i8.i64(i8* %b, i8* %tmp, i64 100, i32 1, i1 false)
- ret void
-}
-
-declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1)