diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-05-14 23:53:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-05-14 23:53:43 +0000 |
| commit | 5366c859a75b53cdceb022e76215e7fe57717b86 (patch) | |
| tree | 1962b141644e0d206cc4f3ba20a4ce31ad6185da /llvm/lib/Target/TargetData.cpp | |
| parent | fe2ebdef4dde33c3238b90b176c423c842d717f9 (diff) | |
| download | bcm5719-llvm-5366c859a75b53cdceb022e76215e7fe57717b86.tar.gz bcm5719-llvm-5366c859a75b53cdceb022e76215e7fe57717b86.zip | |
When emitting the function epilog, check to see if there already a stack
adjustment. If so, we merge the adjustment into the existing one. This
allows us to generate:
caller2:
sub %ESP, 12
mov DWORD PTR [%ESP], 0
mov %EAX, 1234567890
mov %EDX, 0
call func2
add %ESP, 8
ret 4
intead of:
caller2:
sub %ESP, 12
mov DWORD PTR [%ESP], 0
mov %EAX, 1234567890
mov %EDX, 0
call func2
sub %ESP, 4
add %ESP, 12
ret 4
for X86/fast-cc-merge-stack-adj.ll
llvm-svn: 22038
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
0 files changed, 0 insertions, 0 deletions

