Skip to content

gh-131798: JIT: replace _LOAD_SMALL_INT with _LOAD_CONST_INLINE_BORROW - #134406

Merged
brandtbucher merged 4 commits into
python:mainfrom
Zheaoli:manjusaka/const-small-int
May 22, 2025
Merged

gh-131798: JIT: replace _LOAD_SMALL_INT with _LOAD_CONST_INLINE_BORROW#134406
brandtbucher merged 4 commits into
python:mainfrom
Zheaoli:manjusaka/const-small-int

Conversation

@Zheaoli

@ZheaoliZheaoli commented May 21, 2025

Copy link
Copy Markdown
Contributor

@ZheaoliZheaoli changed the title gh-131798: JIT: replace _LOAD_SMALL_INT with _LOAD_SMALL_INTgh-131798: JIT: replace _LOAD_SMALL_INT with _LOAD_CONST_INLINE_BORROWMay 21, 2025
`_LOAD_CONST_INLINE_BORROW`
Signed-off-by: Manjusaka <me@manjusaka.me>
add news
Signed-off-by: Manjusaka <me@manjusaka.me>
add tests
Signed-off-by: Manjusaka <me@manjusaka.me>
fix review idea
Signed-off-by: Manjusaka <me@manjusaka.me>
@Zheaoli
Zheaoliforce-pushed the manjusaka/const-small-int branch from d2741f1 to ee6e90bCompareMay 21, 2025 08:12

@brandtbucherbrandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optimization! Just a couple of suggestions, then I can merge.

Comment threadLib/test/test_capi/test_opt.py
Comment threadPython/optimizer_bytecodes.c
Comment threadPython/optimizer_bytecodes.c Outdated
Zheaoliand others added 2 commits May 22, 2025 11:20
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Signed-off-by: Manjusaka <me@manjusaka.me>
@Zheaoli
Zheaoli requested a review from brandtbucherMay 22, 2025 03:24
@brandtbucher
brandtbucher merged commit 8c5e555 into python:mainMay 22, 2025
@Zheaoli
Zheaoli deleted the manjusaka/const-small-int branch May 22, 2025 16:58
lkollar pushed a commit to lkollar/cpython that referenced this pull request May 26, 2025
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
gostak-dd pushed a commit to gostak-dd/cpython that referenced this pull request Jun 2, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Zheaoli@brandtbucher