Skip to content

Move duplicate LOAD_SMALL_INT optimization from codegen to CFG #130480

Description

@WolframAlph

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

Activity

  1. changed the title [-]Move `LOAD_SMALL_INT` optimization from codegen to CFG[/-] [+]Move duplicate `LOAD_SMALL_INT` optimization from codegen to CFG[/+] on Mar 13, 2025
  2. added a commit that references this issue on Mar 14, 2025
  3. added a commit that references this issue on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions