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: Remove implicit fallthrough assumption in fgExpandRarelyRunBlocks #107350

Merged

Conversation

amanasifkhalid
Copy link
Member

I noticed this while looking at the diffs for #107175. I also removed the compaction logic since it had zero diffs: fgExpandRarelyRunBlocks is only called by fgReorderBlocks, which is always preceded by a pass of fgUpdateFlowGraph.

@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 Sep 4, 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

cc @dotnet/jit-contrib, @AndyAyersMS PTAL. Diffs show some flowgraph churn, with misleadingly-large PerfScore regressions since we're no longer incorrectly marking BBJ_COND blocks with hot false targets as rarely-run. It's hard to evaluate the diffs just by looking at them, but I suspect this change should lead to more informed layout decisions.

@amanasifkhalid amanasifkhalid merged commit 0961328 into dotnet:main Sep 5, 2024
108 checks passed
@amanasifkhalid amanasifkhalid deleted the expand-rarely-run-fallthrough branch September 5, 2024 14:19
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
sirntar pushed a commit to sirntar/runtime that referenced this pull request Sep 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 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