diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-22 15:18:28 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-22 15:18:28 +0000 |
| commit | 5a8e985ad34319f274c47641a2194929e5d6babf (patch) | |
| tree | 13ff8ec8587c91940f62322405cbb224b1812be2 /llvm/test | |
| parent | 4d05874ba2e1a7116c1eac22ab0eca537795cb75 (diff) | |
| download | bcm5719-llvm-5a8e985ad34319f274c47641a2194929e5d6babf.tar.gz bcm5719-llvm-5a8e985ad34319f274c47641a2194929e5d6babf.zip | |
Don't produce tail calls when the caller is x86_thiscallcc.
The callee will not pop the stack for us.
llvm-svn: 195467
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/stdcall-notailcall.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/stdcall-notailcall.ll b/llvm/test/CodeGen/X86/stdcall-notailcall.ll index 8f522cda284..c847ec7b6c0 100644 --- a/llvm/test/CodeGen/X86/stdcall-notailcall.ll +++ b/llvm/test/CodeGen/X86/stdcall-notailcall.ll @@ -10,4 +10,12 @@ entry: ret void } +define x86_thiscallcc void @test2(%struct.I* %this, i32 %a) { +; CHECK-LABEL: test2: +; CHECK: calll _foo +; CHECK: ret $4 + tail call void @foo() + ret void +} + declare void @foo() |

