Skip to content

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 ^

@ghost ghost 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
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2025
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.

Redundant write barriers around byref-like structs

2 participants