Recognize SSE min and max opportunities in even more cases.
authorDan Gohman <gohman@apple.com>
Mon, 21 Sep 2009 18:03:22 +0000 (18:03 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 21 Sep 2009 18:03:22 +0000 (18:03 +0000)
commit670e53977bf289009bb460538987542c9c46ac90
tree10ca07ba7f1ced6a7e9d48bc821dfd61416b149b
parentb29ff977d10ddc90fd993d64d25f5c3c6ac935aa
Recognize SSE min and max opportunities in even more cases.
And fix a bug with the behavior of min/max instructions formed from
fcmp uge comparisons.

Also, use FiniteOnlyFPMath() for this code instead of UnsafeFPMath,
as it is more specific.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82466 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/scalar-min-max-fill-operand.ll
test/CodeGen/X86/sse-minmax.ll