-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Math/MathF.Sign inlineable for floating point data #57413
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsDescriptionMath/MathF.Sign for floating point data currently isn't inlined, probably due to the throw there. Since it's a simple math operation, it should probably be inlined. ConfigurationSharplab Core CLR 5.0.721.25508 on amd64 Regression?No idea. DataAnalysisMoving the throw there to a throw helper should probably make it inlineable.
|
It's probably not worthwhile to make this inlineable. If perf is a consideration (and even if it isn't) then The only consideration really is that these correctly report or propagate |
Closing this for reasons explained above. |
Description
Math/MathF.Sign for floating point data currently isn't inlined, probably due to the throw there. Since it's a simple math operation, it should probably be inlined.
Configuration
Sharplab Core CLR 5.0.721.25508 on amd64
Regression?
No idea.
Data
Sharplab
Analysis
Moving the throw there to a throw helper should probably make it inlineable.
The text was updated successfully, but these errors were encountered: