Skip to content

GH-115685: Split _TO_BOOL_ALWAYS_TRUE into micro-ops #116352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Mar 5, 2024

Rather than optimize _TO_BOOL_ALWAYS_TRUE directly, we can split it into micro-ops and use pre-existing optimizations.

@markshannon markshannon merged commit 23db9c6 into python:main Mar 5, 2024
@markshannon markshannon deleted the optimize-to-bool-always-true branch March 5, 2024 15:25
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
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