Skip to content

Conversation

@Fidget-Spinner
Copy link
Member

@Fidget-SpinnerFidget-Spinner commented Dec 15, 2025

Please see #142764 for why I removed the REPLACE_OPCODE_IF_EVALUATES_PURE(left, right); for the refcount eliminated ops.

News will be covered by the overall What's New entry for the JIT.

@Fidget-SpinnerFidget-Spinner changed the title JIT: Eliminate redundant refcount ops for _BINARY_OP_X_INTgh-134584: JIT: Eliminate redundant refcount ops for _BINARY_OP_X_INTDec 15, 2025
@Fidget-SpinnerFidget-Spinner changed the title gh-134584: JIT: Eliminate redundant refcount ops for _BINARY_OP_X_INTgh-134584: JIT: Eliminate redundant refcount ops for X_INTDec 15, 2025
Copy link
Member

@savannahostrowskisavannahostrowski left a comment

Choose a reason for hiding this comment

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

Chatted offline about the tradeoffs of removing REPLACE_OPCODE_IF_EVALUATES_PURE right now (thanks for the clarification @Fidget-Spinner!). For anyone else reading, this is much more valuable since this optimization applies to any LOAD_FAST not just non-immortal constants.

LGTM!

@Fidget-SpinnerFidget-Spinner merged commit 790a46a into python:mainDec 15, 2025
70 checks passed
@Fidget-SpinnerFidget-Spinner deleted the decreF_elim_binop branch December 15, 2025 22:22
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Fidget-Spinner@savannahostrowski