Skip to content

Conversation

@EgorBo
Copy link
Member

@EgorBo EgorBo commented Mar 16, 2025

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 16, 2025
@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.

@EgorBo EgorBo marked this pull request as ready for review March 16, 2025 11:36
Copilot AI review requested due to automatic review settings March 16, 2025 11:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@AndyAyersMS
Copy link
Member

Would be good for you to describe why you think this is the right thing to do.

If the cloning conditions include GDV then I think the slow loop likelihood needs to reflect the GDV likelihoods. If there's no GDV then I'm less sure.

@EgorBo
Copy link
Member Author

EgorBo commented Mar 16, 2025

@AndyAyersMS Mainly, for three reasons:

  1. We do other clonings (e.g. finally or range-check-clone) with 0 weight for the fallback
  2. SPMI reports huge PerfScore winnings (mainly, because the slow path now gets 0 perfscore mostly)
    image
  3. My upcoming "loop cloning for Spans" shows mixed PerfScore results due to non-zero weight of the fallback, I want to know the perfscore of the fast path

But looks you're right, we need to use GDV's fallback weight (if GDV is involved), today we don't do it either. And GDV is not involved if its fallback's probability is >5%

@EgorBo EgorBo marked this pull request as draft March 17, 2025 12:39
@EgorBo EgorBo mentioned this pull request Mar 17, 2025
@EgorBo
Copy link
Member Author

EgorBo commented Mar 17, 2025

Anyway, I was mostly curious about the diffs for now. I'll take a look at changing the weight to match GDV likelihoods

@EgorBo EgorBo closed this Mar 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 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