diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-22 09:07:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-22 09:07:47 +0000 |
commit | 8999dd3c6862046cfd0b45b0c5101d3266975010 (patch) | |
tree | 39b697983ee1b891ecb0fba486042b5240ccfdeb /lib/CodeGen/Collector.cpp | |
parent | cae8d8d4bebd0517c16145cf3bc3304e8eadad6b (diff) |
implement InstCombine/shift-trunc-shift.ll. This allows
us to compile:
#include <math.h>
int t1(double d) { return signbit(d); }
into:
_t1:
movd %xmm0, %rax
shrq $63, %rax
ret
instead of:
_t1:
movd %xmm0, %rax
shrq $32, %rax
shrl $31, %eax
ret
on x86-64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Collector.cpp')
0 files changed, 0 insertions, 0 deletions