-
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
Update first-class-structs.md #45512
Conversation
@dotnet/jit-contrib PTAL |
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.
LGTM, thank you!
@@ -213,16 +225,21 @@ This would be done in multiple phases: | |||
for a general idea of the kinds of VM changes that may be required. | |||
* Defer retyping of struct return types (`Compiler::impFixupStructReturnType()` and | |||
`Compiler::impFixupCallStructReturn()`) | |||
* This is probably the "right" way to fix [#13355](https://github.com/dotnet/runtime/issues/13355). | |||
* This has largely (fully?) been addressed with [#37745 Disable JitDoOldStructRetyping by default](https://github.com/dotnet/runtime/pull/37745). |
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.
I would say it was fully addressed.
@@ -213,16 +225,21 @@ This would be done in multiple phases: | |||
for a general idea of the kinds of VM changes that may be required. | |||
* Defer retyping of struct return types (`Compiler::impFixupStructReturnType()` and | |||
`Compiler::impFixupCallStructReturn()`) | |||
* This is probably the "right" way to fix [#13355](https://github.com/dotnet/runtime/issues/13355). | |||
* This has largely (fully?) been addressed with [#37745 Disable JitDoOldStructRetyping by default](https://github.com/dotnet/runtime/pull/37745). | |||
* Next, eliminate the "pessimizations". | |||
* For cases where `GT_LCL_FLD` is currently used to "retype" the struct, change it to use *either* | |||
`GT_LCL_FLD`, if it is already address-taken, or to use a `GT_BITCAST` otherwise. |
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.
I would add #11413 to this list.
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.
Done, thanks
No description provided.