diff options
| author | Reid Kleckner <rnk@google.com> | 2015-12-03 20:46:59 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2015-12-03 20:46:59 +0000 |
| commit | 93fc520339d12954f9f71a899e6ea8986eb67d2f (patch) | |
| tree | 1da0485540ddbe1bdd5b2ff2eb5cd3e98d9019e5 /llvm/test/CodeGen/X86/inalloca-stdcall.ll | |
| parent | 69a372dc504c3a5bc53df96f1c236f47534e1e2d (diff) | |
| download | bcm5719-llvm-93fc520339d12954f9f71a899e6ea8986eb67d2f.tar.gz bcm5719-llvm-93fc520339d12954f9f71a899e6ea8986eb67d2f.zip | |
[X86] Put no-op ADJCALLSTACK markers around all dynamic lowerings
Summary:
These ADJCALLSTACK markers don't generate code, but they keep dynamic
alloca code that calls chkstk out of the prologue.
This slightly pessimizes inalloca calls by preventing some register copy
coalescing, but I can live with that.
Reviewers: qcolombet
Subscribers: hans, llvm-commits
Differential Revision: http://reviews.llvm.org/D15200
llvm-svn: 254645
Diffstat (limited to 'llvm/test/CodeGen/X86/inalloca-stdcall.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/inalloca-stdcall.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/inalloca-stdcall.ll b/llvm/test/CodeGen/X86/inalloca-stdcall.ll index e5f6ea70e9c..4f7e4092a99 100644 --- a/llvm/test/CodeGen/X86/inalloca-stdcall.ll +++ b/llvm/test/CodeGen/X86/inalloca-stdcall.ll @@ -14,8 +14,9 @@ define void @g() { %f2 = getelementptr %Foo, %Foo* %b, i32 0, i32 1 store i32 13, i32* %f1 store i32 42, i32* %f2 -; CHECK: movl $13, (%esp) -; CHECK: movl $42, 4(%esp) +; CHECK: movl %esp, %eax +; CHECK: movl $13, (%eax) +; CHECK: movl $42, 4(%eax) call x86_stdcallcc void @f(%Foo* inalloca %b) ; CHECK: calll _f@8 ; CHECK-NOT: %esp |

