Improve codegen for IsNan (dotnet/coreclr#27272)
commit8ea042648814148f3145dd96e99471e346a3980a
authorTanner Gooding <tagoo@outlook.com>
Fri, 18 Oct 2019 02:31:25 +0000 (17 19:31 -0700)
committerMarek Safar <marek.safar@gmail.com>
Tue, 22 Oct 2019 13:46:29 +0000 (22 09:46 -0400)
tree031aed6b90335988fa9b36a40ac227b1da4fffc6
parent113d855adb3c8d64d4c71969c60527a67a6857b6
Improve codegen for IsNan (dotnet/coreclr#27272)

* Updating double.IsNaN and float.IsNaN to just `return x != x`

* Updating x86 codegen to optimize `x != x` for floating-point

* Changing the isnan optimization to only check the operand assigned registers

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Double.cs
netcore/System.Private.CoreLib/shared/System/Single.cs