Skip to content

Move duplicate LOAD_SMALL_INT optimization from codegen to CFG #130480

Closed
@WolframAlph

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

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