]> granicus.if.org Git - llvm/commit
[X86] Combine fminnum/fmaxnum with non-nan operand to fmin/fmax
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 25 May 2019 16:44:29 +0000 (16:44 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 25 May 2019 16:44:29 +0000 (16:44 +0000)
commitcc56f5df4da3fc697f217296046b60e1581a6a0c
tree99966eae5c6116112dd124bab9d75b97480ca504
parentbf45e4ac4e269ab315f44831090992b623dbec3d
[X86] Combine fminnum/fmaxnum with non-nan operand to fmin/fmax

If we have a known non-nan operand, place it in the second operand
of fmin/fmax that is returned if either operand is nan.

Differential Revision: https://reviews.llvm.org/D62448

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361704 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/extract-fp.ll
test/CodeGen/X86/fmaxnum.ll
test/CodeGen/X86/fminnum.ll