-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-112354: Add executor for less-taken branch #112902
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
36feeb1
Skip ENTER_EXECUTOR as deopt target (use vm_data)
gvanrossum d12533b
Add an array of 'extras' to UOpExecutor
gvanrossum f21f2d8
Count side exits per uop loc and print if >= 10
gvanrossum 8463965
Add _PyOptimizer_Anywhere (not yet used)
gvanrossum 6403752
Only jump in ENTER_EXECUTOR if overwriting JUMP_BACKWARD
gvanrossum 329dead
Assert base opcode in _Py_Specialize_ForIter
gvanrossum f1998c0
Disable curses tests in --fast-ci mode (make test)
gvanrossum b0944e6
Improve (?) check for executor recursion
gvanrossum 26b5f89
Only generate extra executors for branches
gvanrossum 649581c
Fix Uop -> UOp
gvanrossum 835bf13
WIP
gvanrossum 256b156
Fix where next_instr points upon E_E avoidance
gvanrossum 75c7c32
Allow executors with oparg >= 256
gvanrossum a94c7f1
Don't try to optimize with default optimizer
gvanrossum 747a3f0
Use separate 'counters' and 'executors' arrays
gvanrossum 682cf5a
Jump directly to side-exit executors
gvanrossum 359c6fc
Remove progress check; clean up the rest a big
gvanrossum ca6ed3a
Ensure array of executor pointers is 64-bit aligned
gvanrossum e2a26b5
Check at least two uops; further cleanup
gvanrossum 38c7aab
Move exit_trace up, since it is smaller
gvanrossum 0f64231
Use configured threshold and exp. backoff for counter
gvanrossum 83297df
Add API to access sub-interpreters
gvanrossum d065a94
Move optimizer/executor tests to new file test_capi/test_opt.py
gvanrossum 0f71a03
Merge branch 'test-opt' into uops-extras
gvanrossum 075ab91
In _PyOptimizer_Unanchored, assert not ENTER_EXECUTOR, accept JUMP_BA…
gvanrossum c54daef
Call DISPATCH() directly from exit_trace
gvanrossum 934a115
Correct comment on deoptimize
gvanrossum 52c49eb
Merge branch 'main' into uops-extras
gvanrossum 8f5e623
Remove enter_tier_one label
gvanrossum 10b98f1
Add test
gvanrossum 1450ca6
Fix memory leak
gvanrossum dcde4d3
Clear sub-executors array upon dealloc
gvanrossum 15df63f
Add blurb
gvanrossum c786418
Avoid redundant stack frame saves/restores
gvanrossum ee0734b
Revert "Disable curses tests in --fast-ci mode (make test)"
gvanrossum 655a841
Merge branch 'main' into uops-extras
gvanrossum 32e36fa
Merge branch 'main' into uops-extras
gvanrossum f5b317a
Fix compiler warning about int/Py_ssize_t
gvanrossum 4804a3c
Be less casual about incref/decref current executor
gvanrossum 46c7d26
Slightly nicer way to handle refcounts
gvanrossum b991279
Silence compiler warning
gvanrossum 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
Use separate 'counters' and 'executors' arrays
(The latter as yet unused.)
- Loading branch information
commit 747a3f07ef1624161ce7b56fea98a9a644e8bae4
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
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.
Uh oh!
There was an error while loading. Please reload this page.