Skip to content

Make condition inside codegen_addop_load_const a macro #129552

Description

@WolframAlph

Bug report

Bug description:

We need to reuse this condition:

if (!overflow && val >= 0 && val < 256 && val < _PY_NSMALLPOSINTS) {

in CFG. FTR: #129568 (comment).

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

  1. changed the title [-]Redundant condition inside `codegen_addop_load_const`[/-] [+]Make condition inside `codegen_addop_load_const` a macro[/+] on Feb 3, 2025
  2. WolframAlph commented on Feb 3, 2025

    @WolframAlph
    ContributorAuthor

    @picnixz , can you edit bug label, since this issue has changed?

  3. WolframAlph commented on Feb 3, 2025

    @WolframAlph
    ContributorAuthor

    Closing as this will be done as part of another issue.

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-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions