[InstSimplify] fsub nnan x, x -> 0.0 is valid without ninf
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 14 Jun 2015 21:01:20 +0000 (21:01 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 14 Jun 2015 21:01:20 +0000 (21:01 +0000)
commit49e5e9f0c9c44ab914897d4ed32b704e8fb35a56
tree709fe93ce98ab1c96f57b0f3d7882d0f6480fd7b
parentf3e82660de47b2fb249da66ad2a82e89a4d41d02
[InstSimplify] fsub nnan x, x -> 0.0 is valid without ninf

Both inf - inf and (-inf) - (-inf) are NaN, so it's already covered by
nnan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239702 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/fast-math.ll