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

Fix constant dupes #415

Merged
merged 4 commits into from
Jul 15, 2022
Merged

Fix constant dupes #415

merged 4 commits into from
Jul 15, 2022

Conversation

Kirill888
Copy link
Contributor

This pull requested fixes issue with constant duplication (#414).

But there are also some other minor fixes:

  • Properly parse where_xxxx instructions in disassembler (do not drop 4-th argument)
  • Allow nan floating point constant construction
  • Allow np.float32(v) constants (do not promote those to double)

Note that one can only use those constants when building expression with python classes directly, parsing nan or float32 out of textual representation is not enabled by this PR.

Closes #414

- display 4-th argument for 8 byte instructions `where_xxxx`
- correct signature extraction for ops with multiple _ in the name
  `ones_like_XX`
While register allocation assigned same register to constants
containing the same value and type, getConstants were returning
all constants with duplicates.
do not convert them to double precision
@robbmcleod
Copy link
Member

Looks good, thanks for the contribution.

@robbmcleod robbmcleod merged commit cd5cbfd into pydata:master Jul 15, 2022
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.

Repeated constants are assigned same register but are still counted
2 participants