iss: Optimize TB chaining and exiting#1027
Draft
BadGraphixD wants to merge 3 commits into
Draft
Conversation
BadGraphixD
force-pushed
the
feature/opt-tb-chain-exit
branch
3 times, most recently
from
June 22, 2026 17:39
2c6e763 to
1743daa
Compare
BadGraphixD
marked this pull request as draft
June 22, 2026 17:41
BadGraphixD
force-pushed
the
feature/opt-tb-chain-exit
branch
3 times, most recently
from
June 29, 2026 21:49
a9dc1b8 to
ef8d7b0
Compare
- The decision whether to continue, chain or end the translation block is now sometimes deferred to TCG translation time
BadGraphixD
force-pushed
the
feature/opt-tb-chain-exit
branch
from
June 29, 2026 21:50
ef8d7b0 to
bb726f4
Compare
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.
Sometimes translation blocks must be ended (e.g. after jumps or tb-state changes). In some cases we can chain translation blocks (when the next tb-state and pc are always the same in the next block). The decision when to do that may depend on facts that are only known at translation time (e.g. instruction operands).
This PR defers the decision to translation time in certain cases.
Tests are included, but benchmarks need to be added to test for possible performance regressions.
Closes #865