Skip to content
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

Move LOAD_SMALL_INT optimization from codegen to CFG #130480

Open
WolframAlph opened this issue Feb 23, 2025 · 0 comments
Open

Move LOAD_SMALL_INT optimization from codegen to CFG #130480

WolframAlph opened this issue Feb 23, 2025 · 0 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@WolframAlph
Copy link
Contributor

WolframAlph commented Feb 23, 2025

Feature or enhancement

Proposal:

Addressing #129568 (comment)

Currently both codegen & peepholer optimize LOAD_CONST for small integers to LOAD_SMALL_INT. CFG can do it alone, so we don't have this logic in 2 places.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

@WolframAlph WolframAlph added the type-feature A feature request or enhancement label Feb 23, 2025
@picnixz picnixz added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants