diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-07-16 00:28:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-07-16 00:28:20 +0000 |
| commit | 507a27592f68579b0e8371d1ac1fa54c7807f17a (patch) | |
| tree | f7ca8c55421ae4fb242efd9c05252130ccccf842 /llvm/lib/Analysis/DataStructure/DataStructure.cpp | |
| parent | e3e847bfd7bde44a81632c5af297f1817d22abbd (diff) | |
| download | bcm5719-llvm-507a27592f68579b0e8371d1ac1fa54c7807f17a.tar.gz bcm5719-llvm-507a27592f68579b0e8371d1ac1fa54c7807f17a.zip | |
Remove all knowledge of UINT_TO_FP from the X86 backend, relying on the
legalizer to eliminate them. With this comes the expected code quality
improvements, such as, for this:
double foo(unsigned short X) { return X; }
we now generate this:
_foo:
subl $4, %esp
movzwl 8(%esp), %eax
movl %eax, (%esp)
fildl (%esp)
addl $4, %esp
ret
instead of this:
_foo:
subl $4, %esp
movw 8(%esp), %ax
movzwl %ax, %eax ;; Load not folded into this.
movl %eax, (%esp)
fildl (%esp)
addl $4, %esp
ret
-Chris
llvm-svn: 22449
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
0 files changed, 0 insertions, 0 deletions

