Convert comparisons like (x == infinity) to (x >= infinity) on targets
authorDan Gohman <gohman@apple.com>
Sat, 26 Sep 2009 15:24:17 +0000 (15:24 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 26 Sep 2009 15:24:17 +0000 (15:24 +0000)
commit11eab02b770086c119a18aae0fe214fbe5eed0d0
treeb2b95db6509d7831bf42987acbad3b9be722da7e
parentb9c129d553c8f2ebdb82969d31c5478f899033bc
Convert comparisons like (x == infinity) to (x >= infinity) on targets
where FCMP_OEQ is not legal and FCMP_OGE is, such as x86.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82861 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/compare-inf.ll [new file with mode: 0644]