-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
add __forceinline
to std::unreachable
instead of inline
#3055
add __forceinline
to std::unreachable
instead of inline
#3055
Conversation
Co-authored-by: Alexander Bessonov <alexbav@hhdsoftware.com>
This looks extremely reasonable to me, personally - we know that MSVC does not consider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the rest of the team thinks this is reasonable, this is obviously the correct way to implement this.
I agree with @strega-nil-ms, and @AlexBAV's codegen example https://godbolt.org/z/a9d33hc5b shows that this makes a difference for |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for improving the STL's performance to previously unreachable levels! 📈 🚀 😹 |
You're always welcome :) |
Co-authored-by: Alexander Bessonov alexbav@hhdsoftware.com
From #3051
And we already use
__forceinline
there:STL/stl/inc/xcharconv_ryu.h
Line 166 in febb643