runtime icon indicating copy to clipboard operation
runtime copied to clipboard

JIT optimization - Perform additional constant propagation for expressions.

Open briansull opened this issue 11 years ago • 3 comments

Thee following two cases should generate the same code:

public static double Run2A() { return Math.Sqrt(1) + Math.Sqrt(2); }

public static double Run2B() { double res = Math.Sqrt(1) + Math.Sqrt(2); return res; }

briansull avatar May 12 '15 17:05 briansull

Resolving this old issue as I verified that it is fixed.

briansull avatar Sep 28 '17 23:09 briansull

@briansull, great, thanks! Could you tell me which version of .NET Core and .NET Framework will contain the fix?

AndreyAkinshin avatar Sep 29 '17 12:09 AndreyAkinshin

Any current 4.7 version should contain the fix.

filever c:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll --a-- WAMD64 DLL ENU 4.7.2110.0 shp 1,129,112 08-31-2017 clrjit.dll

briansull avatar Sep 29 '17 17:09 briansull