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

Byte size fixes/simplifications in IR serialiser. #199

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

vext01
Copy link

@vext01 vext01 commented Sep 11, 2024

See commits.

In general we should be vigilant every time we feel the urge to write expressions like bit_size / 8.

We were doing `byte_size = bit_size / 8` which is only true if your bit
sizes are all multiples of 8.

Found when adding more passes to the AOT pipeline. A bit-size of 1 was
being divided by 8 to get 0 and this upset LLVM (assertion failures at
AOT compile time).
No functional change.
@ptersilie ptersilie added this pull request to the merge queue Sep 12, 2024
Merged via the queue into ykjit:main with commit 547a492 Sep 12, 2024
2 checks passed
vext01 added a commit to vext01/yk_pv that referenced this pull request Sep 12, 2024
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