diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-02-06 03:28:46 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-02-06 03:28:46 +0000 |
commit | d064aefefcdedbcf9decc80bb86fc74f43e90aca (patch) | |
tree | 42074943e7e0814123a8ea5a709ca1b96ec2fa78 /llvm/test/CodeGen/X86/tailcall2.ll | |
parent | 6710c5351e56a7deafd35e99ea663e9dc9aca161 (diff) | |
download | bcm5719-llvm-d064aefefcdedbcf9decc80bb86fc74f43e90aca.tar.gz bcm5719-llvm-d064aefefcdedbcf9decc80bb86fc74f43e90aca.zip |
Do not emit callseq instructions around sibcalls. This eliminated some unnecessary stack adjustments.
llvm-svn: 95475
Diffstat (limited to 'llvm/test/CodeGen/X86/tailcall2.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/tailcall2.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/tailcall2.ll b/llvm/test/CodeGen/X86/tailcall2.ll index b2fe9d3bb91..02bf0c00b43 100644 --- a/llvm/test/CodeGen/X86/tailcall2.ll +++ b/llvm/test/CodeGen/X86/tailcall2.ll @@ -146,9 +146,13 @@ define i32 @t11(i32 %x, i32 %y, i32 %z.0, i32 %z.1, i32 %z.2) nounwind ssp { ; eliminated currently. ; 32: t11: +; 32-NOT: subl ${{[0-9]+}}, %esp +; 32-NOT: addl ${{[0-9]+}}, %esp ; 32: jmp {{_?}}foo5 ; 64: t11: +; 64-NOT: subq ${{[0-9]+}}, %esp +; 64-NOT: addq ${{[0-9]+}}, %esp ; 64: jmp {{_?}}foo5 entry: %0 = icmp eq i32 %x, 0 @@ -168,9 +172,13 @@ declare i32 @foo5(i32, i32, i32, i32, i32) define i32 @t12(i32 %x, i32 %y, %struct.t* byval align 4 %z) nounwind ssp { ; 32: t12: +; 32-NOT: subl ${{[0-9]+}}, %esp +; 32-NOT: addl ${{[0-9]+}}, %esp ; 32: jmp {{_?}}foo6 ; 64: t12: +; 64-NOT: subq ${{[0-9]+}}, %esp +; 64-NOT: addq ${{[0-9]+}}, %esp ; 64: jmp {{_?}}foo6 entry: %0 = icmp eq i32 %x, 0 |