Skip to content

gh-142764: Restore REPLACE_OPCODE_IF_EVALUATES_PURE optimization - #143335

Merged
Fidget-Spinner merged 5 commits into
python:mainfrom
Fidget-Spinner:replace_opcodes_Fix
Jan 9, 2026
Merged

Fidget-Spinner merged 5 commits into
python:mainfrom
Fidget-Spinner:replace_opcodes_Fix

Conversation

@Fidget-Spinner

@Fidget-Spinner Fidget-Spinner commented Jan 1, 2026 •

Copy link
Copy Markdown
Member
@Zheaoli

Zheaoli commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

I think #143417 depends on this PR If I'm correct.

Comment thread Python/optimizer_bytecodes.c Resolved
Comment thread Python/optimizer_bytecodes.c Resolved
Comment thread Python/optimizer_bytecodes.c Resolved

@savannahostrowski savannahostrowski 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.

I think otherwise, this LGTM!

@Fidget-Spinner
Fidget-Spinner merged commit 9525911 into python:main Jan 9, 2026
@Fidget-Spinner
Fidget-Spinner deleted the replace_opcodes_Fix branch January 9, 2026 23:18
@Fidget-Spinner

Copy link
Copy Markdown
Member Author

Thanks for the review!

reidenong pushed a commit to reidenong/cpython that referenced this pull request Jan 12, 2026
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants