Skip to content

Conversation

@Fidget-Spinner
Copy link
Member

@Fidget-Spinner Fidget-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-Spinner Fidget-Spinner changed the title JIT: Eliminate redundant refcount ops for _BINARY_OP_X_INT gh-134584: JIT: Eliminate redundant refcount ops for _BINARY_OP_X_INT Dec 15, 2025
@Fidget-Spinner Fidget-Spinner changed the title gh-134584: JIT: Eliminate redundant refcount ops for _BINARY_OP_X_INT gh-134584: JIT: Eliminate redundant refcount ops for X_INT Dec 15, 2025
Copy link
Member

@savannahostrowski savannahostrowski 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-Spinner Fidget-Spinner merged commit 790a46a into python:main Dec 15, 2025
70 checks passed
@Fidget-Spinner Fidget-Spinner deleted the decreF_elim_binop branch December 15, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants