-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Poor codegen for "big" (> 4 fields) structs init #71565
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
This is essentially a duplicate of #6534 -- the JIT does not currently do promotion for structs with more than 4 fields. It is an area that I hope we will be improving in .NET 8. |
@jakobbotsch Is there any info about what are all those restrictions (#6494 (comment) especially the one about 4 fields limit) based on? |
The 4 fields limit is just a CQ heuristic. Some of the other restrictions represent unimplemented functionality. |
@jakobbotsch @SingleAccretion On the second thought my guess is that the issue some way related to ABI stuff - particularly the fact that the number of args that could be passed in regs is 4 |
category:cq
theme:structs
skill-level:expert
cost:large
impact:large
The text was updated successfully, but these errors were encountered: