You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you sure about this?
I would expect the compiler to never simplify a+b-a to b, since the semantics would change.
Could you help me reproduce the difference?
I could get no difference with and without the NoOptimization using this code
(in both cases I get infinity - as I'd expect):
some unit test code like var result = a + b - a, it will be fault in release mode,
add [MethodImpl(MethodImplOptions.NoOptimization)] to avoid fault.
The text was updated successfully, but these errors were encountered: