-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-146073: Add fitness/exit quality mechanism for JIT trace frontend #148089
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
Open
cocolato
wants to merge
38
commits into
python:main
Choose a base branch
from
cocolato:jit-tracer-fitness
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
1bfa176
add fitness && exit quality mechanism
cocolato 2f9438a
Rewrite the code structure
cocolato 709c0a1
address review
cocolato ef6ac24
address many reviews
cocolato 21f7122
Merge branch 'main' into jit-tracer-fitness
cocolato b99fe61
optimize some constants
cocolato d09afb5
fix comment
cocolato c9957c3
fix constent
cocolato 9447546
reduce frame penalty
cocolato 7d3e4c4
add debug log
cocolato 2c1b5e0
address review
cocolato 2409b2f
address review
cocolato 88a91dc
Merge branch 'python:main' into jit-tracer-fitness
cocolato 4e12f04
Merge branch 'main' into jit-tracer-fitness
cocolato 4bd251e
fine tune parameters
cocolato 1d93208
remove some special cases
cocolato 386c23a
Merge branch 'main' into jit-tracer-fitness
cocolato 83fd8ab
rewrite fitness mechanism
cocolato c900563
remove static assert
cocolato 97d8be4
Merge branch 'main' into jit-tracer-fitness
cocolato 559b164
Merge branch 'main' into jit-tracer-fitness
cocolato 7a5e1fe
address partial review
cocolato 9324df0
restore slots_rev
cocolato e69443b
address review
cocolato 751a1d9
Race MAX_TARGET_LENGTH to 800, compute branch after slots, ignore ENT…
Fidget-Spinner 896e4fe
reduce MAX_TARGET_LENGTH
Fidget-Spinner 1364159
fix tests
Fidget-Spinner 9fbec75
fix a bug
Fidget-Spinner 76b9c9e
magic numbers
Fidget-Spinner d565f41
lint
Fidget-Spinner 598d332
reduce the trace length to less than half
Fidget-Spinner 64f3468
Address review
Fidget-Spinner 7661e7b
Reduce ENTER_EXECUTOR's exit quality
Fidget-Spinner 9c75bb6
Merge branch 'main' into jit-tracer-fitness
cocolato bafa264
Merge branch 'main' into jit-tracer-fitness
cocolato f2bde9e
fine tuning
cocolato 8ce4b53
Merge branch 'main' into jit-tracer-fitness
cocolato bde4926
don't skip render side exit executor
cocolato File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
NOTE:
The problem here is that when tracing loops, we are treating the start of the loop as the closing point, but we want to stop at the end of the loop otherwise.
We probably need to make the back edge quality calculation a bit more complex.
(this can be fixed in a separate PR if would complicate this PR too much)
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.
I prefer to do this in next PR.