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

JIT: Consider block weights instead of BBF_RUN_RARELY flag in fgMoveColdBlocks #103492

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

amanasifkhalid
Copy link
Member

Based on feedback in #102763 (comment), define "cold" blocks based on whether their weights are below a certain threshold, rather than only considering blocks marked with BBF_RUN_RARELY, in fgMoveColdBlocks. I added a BasicBlock method for doing this weight check rather than localizing it to fgMoveColdBlocks, as I plan to use it elsewhere in the layout phase.

@AndyAyersMS PTAL, thank you!

@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 Jun 14, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@amanasifkhalid
Copy link
Member Author

Diffs are bigger than I expected -- looks like we have blocks that are rarely (but not never) run somewhat frequently.

SPMI failure is a timeout. Runtime test failure is #102706.

@amanasifkhalid amanasifkhalid merged commit 5b96528 into dotnet:main Jun 15, 2024
103 of 107 checks passed
@amanasifkhalid amanasifkhalid deleted the move-cold-blocks branch June 15, 2024 01:25
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2024
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.

2 participants