Skip to content

Conversation

@amanasifkhalid
Copy link
Contributor

Block weights don't seem particularly useful in MinOpts. Skipping fgComputeBlockWeights when we aren't optimizing had few diffs locally, so this looks like an opportunity to save some TP.

(As an aside, I suspect we can soon replace fgComputeBlockWeights and optSetBlockWeights with profile synthesis. After the existing flow opt and unreachable block removal passes, I think we ought to compute the loop data structures, run profile synthesis, and then run loop opts. Since earlier phases don't seem too dependent on profile fidelity, but loop inversion/cloning/etc. stand to benefit from it, this is a natural checkpoint for running synthesis.)

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 5, 2024
@dotnet-policy-service
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
Contributor Author

cc @dotnet/jit-contrib, @AndyAyersMS PTAL. Small MinOpts diffs from what looks like different block placement: This seems to stem from some blocks (not) being marked as rarely-run now, leading fgNewBBinRegion to make different placement decisions. Thanks!

@amanasifkhalid amanasifkhalid merged commit e2e4642 into dotnet:main Dec 6, 2024
102 of 108 checks passed
@amanasifkhalid amanasifkhalid deleted the fgComputeBlockWeights branch December 6, 2024 16:55
@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 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.

2 participants