-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: Use likelihoods in block reordering decision #101132
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing.
Forgot to mention this, but no diffs. |
Follow-up to #99736. This should be a no-diff change.