diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-14 22:29:23 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-14 22:29:23 +0000 |
| commit | 69878336519f09aadf976cf1b5c73dafbb54ce6f (patch) | |
| tree | b77f325fd9a00d9d718773bba9404186bbbae8af /lib/Bitcode/Reader | |
| parent | 2caf0ec7ad9899a068d1e232e8ddac5da97dbf0e (diff) | |
| download | llvm-69878336519f09aadf976cf1b5c73dafbb54ce6f.tar.gz llvm-69878336519f09aadf976cf1b5c73dafbb54ce6f.tar.bz2 llvm-69878336519f09aadf976cf1b5c73dafbb54ce6f.tar.xz | |
Implement InstCombine/vec_demanded_elts.ll:test2. This allows us to turn
unsigned test(float f) {
return _mm_cvtsi128_si32( (__m128i) _mm_set_ss( f*f ));
}
into:
_test:
movss 4(%esp), %xmm0
mulss %xmm0, %xmm0
movd %xmm0, %eax
ret
instead of:
_test:
movss 4(%esp), %xmm0
mulss %xmm0, %xmm0
xorps %xmm1, %xmm1
movss %xmm0, %xmm1
movd %xmm1, %eax
ret
GCC gets:
_test:
subl $28, %esp
movss 32(%esp), %xmm0
mulss %xmm0, %xmm0
xorps %xmm1, %xmm1
movss %xmm0, %xmm1
movaps %xmm1, %xmm0
movd %xmm0, 12(%esp)
movl 12(%esp), %eax
addl $28, %esp
ret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions
