Skip to content

gh-144388: Add new uop _RETURN_VALUE_HEAP_SAFE to avoid refcount operation#144414

Open
cocolato wants to merge 3 commits intopython:mainfrom
cocolato:optimize/add_RETURN_VALUE_HEAP_SAFE
Open

gh-144388: Add new uop _RETURN_VALUE_HEAP_SAFE to avoid refcount operation#144414
cocolato wants to merge 3 commits intopython:mainfrom
cocolato:optimize/add_RETURN_VALUE_HEAP_SAFE

Conversation

@cocolato
Copy link
Contributor

@cocolato cocolato commented Feb 3, 2026

This adds a JIT optimization that avoids unnecessary reference count operations in RETURN_VALUE when the return value is already heap-safe in non generator functions.

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.

1 participant