Skip to content
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

Merged
merged 2 commits into from
Dec 3, 2020
Merged

Conversation

CarolEidt
Copy link
Contributor

No description provided.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 3, 2020
@CarolEidt
Copy link
Contributor Author

@dotnet/jit-contrib PTAL
I updated the doc to reflect current status.
I've eliminated the old and outdated IR listings, and have fixed some old issues to refer to the runtime repo.

Copy link
Contributor

@sandreenko sandreenko left a 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).
Copy link
Contributor

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.
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks

@CarolEidt CarolEidt merged commit 74116f0 into dotnet:master Dec 3, 2020
@CarolEidt CarolEidt deleted the UpdateStructsDoc branch December 3, 2020 19:15
@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants