-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
gh-139038: Credit more people for JIT in 3.15 #148359
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
Merged
+11
−8
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1428,7 +1428,6 @@ end users running Python do not need LLVM installed. Instructions for | |||||
| installing LLVM can be found in the `JIT compiler documentation | ||||||
| <https://github.com/python/cpython/blob/main/Tools/jit/README.md>`__ | ||||||
| for all supported platforms. | ||||||
|
|
||||||
| (Contributed by Savannah Ostrowski in :gh:`140973`.) | ||||||
|
|
||||||
| .. rubric:: A new tracing frontend | ||||||
|
|
@@ -1440,7 +1439,6 @@ code. For example, simple Python object creation is now understood by the | |||||
| supported. This was made possible by an overhauled JIT tracing frontend | ||||||
| that records actual execution paths through code, rather than estimating | ||||||
| them as the previous implementation did. | ||||||
|
|
||||||
| (Contributed by Ken Jin in :gh:`139109`. Support for Windows added by | ||||||
| Mark Shannon in :gh:`141703`.) | ||||||
|
|
||||||
|
|
@@ -1450,35 +1448,40 @@ A basic form of register allocation has been added to the JIT compiler's | |||||
| optimizer. This allows the JIT compiler to avoid certain stack operations | ||||||
| altogether and instead operate on registers. This allows the JIT to produce | ||||||
| more efficient traces by avoiding reads and writes to memory. | ||||||
|
|
||||||
| (Contributed by Mark Shannon in :gh:`135379`.) | ||||||
|
|
||||||
| .. rubric:: More JIT optimizations | ||||||
|
|
||||||
| More `constant-propagation <https://en.wikipedia.org/wiki/Constant_folding>`__ | ||||||
| is now performed. This means when the JIT compiler detects that certain user | ||||||
| code results in constants, the code can be simplified by the JIT. | ||||||
|
|
||||||
| (Contributed by Ken Jin and Savannah Ostrowski in :gh:`132732`.) | ||||||
|
|
||||||
| The JIT avoids :term:`reference count`\ s where possible. This generally | ||||||
| :term:`Reference count`\ s are avoided whenever it is safe to do so. This generally | ||||||
| reduces the cost of most operations in Python. | ||||||
|
|
||||||
| (Contributed by Ken Jin, Donghee Na, Zheao Li, Hai Zhu, Savannah Ostrowski, | ||||||
| Reiden Ong, Noam Cohen, Tomas Roun, PuQing, Cajetan Rodrigues, and Sacul in :gh:`134584`.) | ||||||
|
|
||||||
| The JIT optimizer now supports significantly more operations than in 3.14. | ||||||
| (Contributed by Kumar Aditya, Ken Jin, and Sacul in :gh:`131798`.) | ||||||
|
|
||||||
| .. rubric:: Better machine code generation | ||||||
|
|
||||||
| The JIT compiler's machine code generator now produces better machine code | ||||||
| for x86-64 and AArch64 macOS and Linux targets. In general, users should | ||||||
| experience lower memory usage for generated machine code and more efficient | ||||||
| machine code versus the old JIT. | ||||||
|
|
||||||
| machine code versus 3.14. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Same here
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is already implied. It would also be dishonest of us to compare to something else, so I hope people think the same. |
||||||
| (Contributed by Brandt Bucher in :gh:`136528` and :gh:`136528`. | ||||||
| Implementation for AArch64 contributed by Mark Shannon in :gh:`139855`. | ||||||
| Additional optimizations for AArch64 contributed by Mark Shannon and | ||||||
| Diego Russo in :gh:`140683` and :gh:`142305`.) | ||||||
|
|
||||||
| .. rubric:: Maintainability | ||||||
|
|
||||||
| The JIT optimizer's operations have been simplified. | ||||||
| This was made possible by a refactoring of JIT data structures. | ||||||
| (Contributed by Zhongtian Zheng in :gh:`148211` and Hai Zhu in :gh:`143421`.) | ||||||
|
|
||||||
|
|
||||||
| Removed | ||||||
| ======== | ||||||
|
|
||||||
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.
Small suggestion for clarity