From eea70f406e23c6d4ca8b83f4dc696ea7597a471d Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Sat, 11 Apr 2026 02:31:58 +0800 Subject: [PATCH 1/3] Credit more people for JIT in 3.15 --- Doc/whatsnew/3.15.rst | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 927d6035c8c4bc..1cbda584cd9bc4 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -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 `__ 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,7 +1448,6 @@ 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 @@ -1458,27 +1455,33 @@ more efficient traces by avoiding reads and writes to memory. More `constant-propagation `__ 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 where 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 :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. (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 INSERT NAME HERE in :gh:`148211` and Hai Zhu in :gh:`143421`.) + Removed ======== From 3528336af189f841be01c562ba8c6c5f35b675fb Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Sat, 11 Apr 2026 02:46:04 +0800 Subject: [PATCH 2/3] Address review, use name --- Doc/whatsnew/3.15.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 1cbda584cd9bc4..6ef9967adf830d 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -1457,13 +1457,13 @@ 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`.) -:term:`reference count`\ s are avoided where safe to do so. This generally +:term:`Reference count`\ s are avoided where 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 :gh:`131798`) +(Contributed by Kumar Aditya, Ken Jin, and Sacul in :gh:`131798`) .. rubric:: Better machine code generation @@ -1480,7 +1480,7 @@ Diego Russo in :gh:`140683` and :gh:`142305`.) The JIT optimizer's operations have been simplified. This was made possible by a refactoring of JIT data structures. -(Contributed by INSERT NAME HERE in :gh:`148211` and Hai Zhu in :gh:`143421`.) +(Contributed by Zhongtian Zheng in :gh:`148211` and Hai Zhu in :gh:`143421`.) Removed From 8bd4049237764b5f5c425cc047f56b3066238f07 Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Sat, 11 Apr 2026 02:48:24 +0800 Subject: [PATCH 3/3] review round 2 --- Doc/whatsnew/3.15.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 6ef9967adf830d..c754b634ecccfa 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -1457,13 +1457,13 @@ 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`.) -:term:`Reference count`\ s are avoided where safe to do so. 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`) +(Contributed by Kumar Aditya, Ken Jin, and Sacul in :gh:`131798`.) .. rubric:: Better machine code generation