Codegen:
authorChris Lattner <sabre@nondot.org>
Sat, 29 Dec 2007 06:57:38 +0000 (06:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 29 Dec 2007 06:57:38 +0000 (06:57 +0000)
commitd60eedca018895df83968d052230129bc25731cb
tree46978b8a6ba766e9071259513f131d4ee97f6521
parent5938bef2d259ca7648481ec3fb4cefbdff22458d
Codegen:

as:

_bar:
pushl %esi
subl $8, %esp
movl 16(%esp), %esi
call L_foo$stub
fstps (%esi)
addl $8, %esp
popl %esi
#FP_REG_KILL
ret

instead of:

_bar:
pushl %esi
subl $8, %esp
movl 16(%esp), %esi
call L_foo$stub
fstpl (%esi)
cvtsd2ss (%esi), %xmm0
movss %xmm0, (%esi)
addl $8, %esp
popl %esi
#FP_REG_KILL
ret

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45401 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/fp-stack-ret-store.ll