Emit integer x<1 as x<=0, as comparisons with zero (now includeing
authorDan Gohman <gohman@apple.com>
Mon, 17 Sep 2007 14:49:27 +0000 (14:49 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 17 Sep 2007 14:49:27 +0000 (14:49 +0000)
commit5f6913cecd9f760c02754772cb57fa4d9a96624f
tree8df4f05f0cd6c727e0ea21516454c1e66e27cc94
parent11f7bfbb834e42cd53a81a84a1dfc118ae17c9c5
Emit integer x<1 as x<=0, as comparisons with zero (now includeing
64-bit) can use test instead of cmp with an immediate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42026 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/cmp1.ll [new file with mode: 0644]