diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-12 02:19:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-12 02:19:10 +0000 |
commit | aedcabe8db5ca7f68535b51c50524ba450155f6d (patch) | |
tree | 464413baa36c0a9971a3b6a2abee96594bc796a6 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 71ff44e46c230e1232403af17d1a06047685ad34 (diff) | |
download | bcm5719-llvm-aedcabe8db5ca7f68535b51c50524ba450155f6d.tar.gz bcm5719-llvm-aedcabe8db5ca7f68535b51c50524ba450155f6d.zip |
Emit comparisons against the sign bit better. Codegen this:
bool %test1(long %X) {
%A = setlt long %X, 0
ret bool %A
}
like this:
test1:
cmpl $0, 8(%esp)
setl %al
movzbl %al, %eax
ret
instead of:
test1:
movl 8(%esp), %ecx
cmpl $0, %ecx
setl %al
movzbw %al, %ax
cmpl $0, 4(%esp)
setb %dl
movzbw %dl, %dx
cmpl $0, %ecx
cmove %dx, %ax
movzbl %al, %eax
ret
llvm-svn: 21243
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions