summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/tailcall1.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-01-27 06:25:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-01-27 06:25:16 +0000
commitb17124553d569c6f09347f2cbe072eab445d30c4 (patch)
tree39c5762a493512780ffb1359bcb9211b457b609e /test/CodeGen/X86/tailcall1.ll
parent0a65a1441731c5fcf08647e95c9802844da68514 (diff)
downloadexternal_llvm-b17124553d569c6f09347f2cbe072eab445d30c4.zip
external_llvm-b17124553d569c6f09347f2cbe072eab445d30c4.tar.gz
external_llvm-b17124553d569c6f09347f2cbe072eab445d30c4.tar.bz2
Perform trivial tail call optimization for callees with "C" ABI. These are done
even when -tailcallopt is not specified and it does not require changing ABI. First case is the most trivial one. Perform tail call optimization when both the caller and callee do not return values and when the callee does not take any input arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tailcall1.ll')
-rw-r--r--test/CodeGen/X86/tailcall1.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/tailcall1.ll b/test/CodeGen/X86/tailcall1.ll
index 42f8cdd..96c4cad 100644
--- a/test/CodeGen/X86/tailcall1.ll
+++ b/test/CodeGen/X86/tailcall1.ll
@@ -4,8 +4,8 @@ declare fastcc i32 @tailcallee(i32 %a1, i32 %a2, i32 %a3, i32 %a4)
define fastcc i32 @tailcaller(i32 %in1, i32 %in2) nounwind {
entry:
- %tmp11 = tail call fastcc i32 @tailcallee(i32 %in1, i32 %in2, i32 %in1, i32 %in2)
- ret i32 %tmp11
+ %tmp11 = tail call fastcc i32 @tailcallee(i32 %in1, i32 %in2, i32 %in1, i32 %in2)
+ ret i32 %tmp11
}
declare fastcc i8* @alias_callee()