diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-08 20:34:14 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-08 20:34:14 +0000 |
commit | c2e93b255e120f066ad8c16b0593b05f7e9f3d19 (patch) | |
tree | f41aee4ef660f15060d337608f1a26849f39aec0 /test | |
parent | 1797ed50f488f2030f9f9a0ac7426262abf5220a (diff) |
In guaranteed tailcall mode, don't decline the tailcall optimization
for blocks ending in "unreachable".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/tailcall1.ll | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/X86/tailcall1.ll b/test/CodeGen/X86/tailcall1.ll index d08919e668..f7ff5d5308 100644 --- a/test/CodeGen/X86/tailcall1.ll +++ b/test/CodeGen/X86/tailcall1.ll @@ -1,4 +1,7 @@ -; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL | count 4 +; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL | count 5 + +; With -tailcallopt, CodeGen guarantees a tail call optimization +; for all of these. declare fastcc i32 @tailcallee(i32 %a1, i32 %a2, i32 %a3, i32 %a4) |