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

Remove more write-barriers around byreflike structs #111576

Merged
merged 5 commits into from
Jan 22, 2025

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Jan 18, 2025

Closes #111575

Removes all write barrier helper calls from the snippets in the issue ^

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jan 18, 2025
@EgorBo
Copy link
Member Author

EgorBo commented Jan 18, 2025

@MihuBot

@EgorBo
Copy link
Member Author

EgorBo commented Jan 20, 2025

PTAL @jakobbotsch (since you reviewed previous similar PR) @dotnet/jit-contrib

Diffs

@EgorBo EgorBo requested a review from jakobbotsch January 20, 2025 16:30
{
indirFlags = m_store->gtFlags & (GTF_IND_TGT_NOT_HEAP | GTF_IND_TGT_HEAP);
}
dstFldStore = m_comp->gtNewStoreIndNode(srcType, fldAddr, srcFld, indirFlags);
Copy link
Member Author

@EgorBo EgorBo Jan 20, 2025

Choose a reason for hiding this comment

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

Here we were losing GTF_IND_TGT* flags when we promote GT_STORE_BLK to field-wise GT_STOREINDs

@EgorBo
Copy link
Member Author

EgorBo commented Jan 22, 2025

ping @jakobbotsch (let me know if you're busy so I can spam someone else)

@EgorBo EgorBo merged commit 00c8751 into dotnet:main Jan 22, 2025
112 checks passed
@EgorBo EgorBo deleted the optimize-byreflike-wb branch January 22, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

Redundant write barriers around byref-like structs
2 participants