-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Slightly optimize bit syntax construction #9225
base: master
Are you sure you want to change the base?
Slightly optimize bit syntax construction #9225
Conversation
Having the definition in erl_bits.h allows us to use it from beam_jit_common.cpp.
CT Test Results 3 files 141 suites 48m 36s ⏱️ Results for commit aeb36f1. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
|
||
/* This instruction is always preceded by a size calculation that | ||
* guarantees that 'arg' is a bitstring. */ | ||
ASSERT(is_bitstring(arg)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: this is already checked in ERTS_GET_BITSTRING
.
Slightly optimize creation of binary segments when it's known that units are compatible.
When accumulating a fixed-size integer, be sure to use the smallest possible native instructions. Also simplify storing the first value into the accumulator.
67ff56c
to
aeb36f1
Compare
See the individual commit messages for details.