-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[SimplifyLibCalls] Add initial support for non-8-bit bytes #106542
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
Draft
s-barannikov
wants to merge
1
commit into
users/s-barannikov/byte/6-string-info-char-width
Choose a base branch
from
users/s-barannikov/byte/7-simplify-lib-calls
base: users/s-barannikov/byte/6-string-info-char-width
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[SimplifyLibCalls] Add initial support for non-8-bit bytes #106542
s-barannikov
wants to merge
1
commit into
users/s-barannikov/byte/6-string-info-char-width
from
users/s-barannikov/byte/7-simplify-lib-calls
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Aug 29, 2024
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
e5b70fc to
cdb7292
Compare
a32b79e to
699b2bc
Compare
cdb7292 to
d27bc30
Compare
699b2bc to
c640baf
Compare
d27bc30 to
deca69b
Compare
c640baf to
baf4933
Compare
baf4933 to
9859c07
Compare
deca69b to
57104d1
Compare
9859c07 to
931d15e
Compare
57104d1 to
fe95d64
Compare
931d15e to
76b4553
Compare
fe95d64 to
24ff5d6
Compare
76b4553 to
bb76990
Compare
24ff5d6 to
0a21746
Compare
d2b8f2e to
c46fbb9
Compare
0a21746 to
b878d88
Compare
c46fbb9 to
4bf7017
Compare
b878d88 to
1591f0b
Compare
4bf7017 to
a7b7545
Compare
The patch makes CharWidth argument of `getStringLength` mandatory and ensures the correct values are passed in most cases. This is *not* a complete support for unusual byte widths in SimplifyLibCalls since `getConstantStringInfo` returns false for those. The code guarded by `getConstantStringInfo` returning true is unchanged because the changes are currently not testable.
a7b7545 to
73b1913
Compare
1591f0b to
0d66f01
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

The patch makes CharWidth argument of
getStringLengthmandatoryand ensures the correct values are passed in most cases.
This is not a complete support for unusual byte widths in
SimplifyLibCalls since
getConstantStringInforeturns false for those.The code guarded by
getConstantStringInforeturning true is unchangedbecause the changes are currently not testable.