summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/tailcall-cgp-dup.ll
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-19 21:47:14 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-19 21:47:14 +0000
commit7a90e04fc76392972bd8bd0ddee5c934c22c1393 (patch)
treeaa635f0cc7aeaf8721128213c1a83431846568cd /test/CodeGen/X86/tailcall-cgp-dup.ll
parentae16d6b9722dd6ff4a606308e3a14d200f3a903f (diff)
Revert r127953, "SimplifyCFG has stopped duplicating returns into predecessors
to canonicalize IR", it broke a lot of things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tailcall-cgp-dup.ll')
-rw-r--r--test/CodeGen/X86/tailcall-cgp-dup.ll63
1 files changed, 0 insertions, 63 deletions
diff --git a/test/CodeGen/X86/tailcall-cgp-dup.ll b/test/CodeGen/X86/tailcall-cgp-dup.ll
deleted file mode 100644
index 10fe146fd67..00000000000
--- a/test/CodeGen/X86/tailcall-cgp-dup.ll
+++ /dev/null
@@ -1,63 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
-
-; Teach CGP to dup returns to enable tail call optimization.
-; rdar://9147433
-
-define i32 @foo(i32 %x) nounwind ssp {
-; CHECK: foo:
-entry:
- switch i32 %x, label %return [
- i32 1, label %sw.bb
- i32 2, label %sw.bb1
- i32 3, label %sw.bb3
- i32 4, label %sw.bb5
- i32 5, label %sw.bb7
- i32 6, label %sw.bb9
- ]
-
-sw.bb: ; preds = %entry
-; CHECK: jmp _f1
- %call = tail call i32 @f1() nounwind
- br label %return
-
-sw.bb1: ; preds = %entry
-; CHECK: jmp _f2
- %call2 = tail call i32 @f2() nounwind
- br label %return
-
-sw.bb3: ; preds = %entry
-; CHECK: jmp _f3
- %call4 = tail call i32 @f3() nounwind
- br label %return
-
-sw.bb5: ; preds = %entry
-; CHECK: jmp _f4
- %call6 = tail call i32 @f4() nounwind
- br label %return
-
-sw.bb7: ; preds = %entry
-; CHECK: jmp _f5
- %call8 = tail call i32 @f5() nounwind
- br label %return
-
-sw.bb9: ; preds = %entry
-; CHECK: jmp _f6
- %call10 = tail call i32 @f6() nounwind
- br label %return
-
-return: ; preds = %entry, %sw.bb9, %sw.bb7, %sw.bb5, %sw.bb3, %sw.bb1, %sw.bb
- %retval.0 = phi i32 [ %call10, %sw.bb9 ], [ %call8, %sw.bb7 ], [ %call6, %sw.bb5 ], [ %call4, %sw.bb3 ], [ %call2, %sw.bb1 ], [ %call, %sw.bb ], [ 0, %entry ]
- ret i32 %retval.0
-}
-
-declare i32 @f1()
-
-declare i32 @f2()
-
-declare i32 @f3()
-
-declare i32 @f4()
-
-declare i32 @f5()
-
-declare i32 @f6()