mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
turning these into 'adds' would require extra copies
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
223547ab31
commit
bb1d528aa6
@ -247,21 +247,19 @@ llvm-as < setuge.ll | llc -march=x86 -mcpu=yonah -enable-x86-sse
|
|||||||
|
|
||||||
_cmp:
|
_cmp:
|
||||||
subl $4, %esp
|
subl $4, %esp
|
||||||
1) leal 20(%esp), %eax
|
leal 20(%esp), %eax
|
||||||
movss 12(%esp), %xmm0
|
movss 12(%esp), %xmm0
|
||||||
1) leal 16(%esp), %ecx
|
leal 16(%esp), %ecx
|
||||||
ucomiss 8(%esp), %xmm0
|
ucomiss 8(%esp), %xmm0
|
||||||
cmovb %ecx, %eax
|
cmovb %ecx, %eax
|
||||||
2) movss (%eax), %xmm0
|
1) movss (%eax), %xmm0
|
||||||
2) movss %xmm0, (%esp)
|
1) movss %xmm0, (%esp)
|
||||||
flds (%esp)
|
flds (%esp)
|
||||||
addl $4, %esp
|
addl $4, %esp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
1) These LEA's should be adds. This is tricky because they are FrameIndex's
|
1) We shouldn't load into XMM regs only to store it back.
|
||||||
before prolog-epilog rewriting.
|
|
||||||
2) We shouldn't load into XMM regs only to store it back.
|
|
||||||
|
|
||||||
//===---------------------------------------------------------------------===//
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user