[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)
commit228680ded8bbd04dd179e953843f86c44e982448
treef490bd34b83c56a43c68bd445c26214caddb0296
parent4f0524614e664c56cc4a516439022af87c543247
[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.

llvm-svn: 239702
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/fast-math.ll