Repository navigation
JIT: Raise CSE candidate limit - #138310
Open
NinoFloris wants to merge 2 commits into
Open
NinoFloris wants to merge 2 commits into
NinoFloris wants to merge 2 commits into
Conversation
The 64 limit came from the retired uint64 EXPSET_TP representation, and the remaining encoding bound is gtCSEnum's signed char, which holds indexes to 127 with the def negation. The availability sets are dynamic bit vectors sized by the candidate count, so methods below the old limit are unaffected. In large methods the promoted temps are mostly regional rather than simultaneously live, measured at 9 concurrent of 43 promoted in one capped method, so additional candidates do not compete for the same registers. On top of deferred re-ranking the extra indexes net another six-figure PerfScore win on the win-x64 run_pgo monsters with a loss tail of tens of PerfScore, and a small net win across the osx-arm64 collection.
Increment CseDeniedCount each time a tracked expression repeats but cannot get a slot because MAX_CSE_CNT has been reached. Include the key, cost and block weight in JitDump for both denied and untracked occurrences.
|
Azure Pipelines: Successfully started running 5 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
Author
|
@AndyAyersMS it's not the most spectacular TP trade, but it's not terrible. PTAL https://dev.azure.com/dnceng-public/public/_build/results?buildId=1699948&view=ms.vss-build-web.run-extensions-tab |
NinoFloris
marked this pull request as ready for review
November 25, 2026 22:36
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The old limit of 64 came from the previous bit-vector representation. The remaining limit is gtCSEnum, which uses a signed byte to encode candidate indices and can represent indices up to 127