Skip to content

Conversation

TH3CHARLie
Copy link
Collaborator

Mypyc currently represents int and short_int using a tagged representation, which requires doubling the value when emitting to C. Since we are moving towards low-level IR, we change LoadInt to store the doubled value directly if the type is int/short_int, to be explicit about the tagged representation.

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how this makes the IR more similar to the generated C.

@JukkaL JukkaL merged commit 5e31019 into python:master Jul 17, 2020
@TH3CHARLie TH3CHARLie deleted the load-int-store-tagged-value branch July 22, 2020 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants