Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

JIT: Use likelihoods in block reordering decision - #101132

#101132
Merged
amanasifkhalid merged 2 commits into
dotnet:maindotnet/runtime:mainfrom
amanasifkhalid:use-likelihoodsamanasifkhalid/runtime:use-likelihoodsCopy head branch name to clipboard
Apr 17, 2024
Merged

JIT: Use likelihoods in block reordering decision#101132
amanasifkhalid merged 2 commits into
dotnet:maindotnet/runtime:mainfrom
amanasifkhalid:use-likelihoodsamanasifkhalid/runtime:use-likelihoodsCopy head branch name to clipboard

Conversation

@amanasifkhalid

Copy link
Copy Markdown
Contributor

Follow-up to #99736. This should be a no-diff change.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 16, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

Comment thread src/coreclr/jit/fgopt.cpp Outdated
// the branch
if (takenCount < (0.51 * totalCount))
// If we take the true branch more than half the time, we will reverse the branch.
if (edgeToDest->getLikelihood() < 0.51)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we rename these edge vars? Something like trueEdge / falseEdge? There are some mentions up in the comment and vestiges of the old min/max there too.

Also down below this a bit, subtracting 1 is not semantically meaningful. However perhaps we should leave this for now as this logic will ultimately not be needed when we do the new block layout.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure thing.

@amanasifkhalid
amanasifkhalid merged commit 7f2e028 into dotnet:main Apr 17, 2024
@amanasifkhalid
amanasifkhalid deleted the use-likelihoods branch April 17, 2024 18:31
@amanasifkhalid

Copy link
Copy Markdown
Contributor Author

Forgot to mention this, but no diffs.

matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.