Skip to content

Conversation

@s-barannikov
Copy link
Contributor

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.

Copy link
Contributor Author

s-barannikov commented Aug 29, 2024

@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from e5b70fc to cdb7292 Compare October 27, 2024 00:57
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from a32b79e to 699b2bc Compare October 27, 2024 00:57
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from cdb7292 to d27bc30 Compare October 27, 2024 01:35
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from 699b2bc to c640baf Compare October 27, 2024 01:35
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from d27bc30 to deca69b Compare October 27, 2024 01:40
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from c640baf to baf4933 Compare October 27, 2024 01:40
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from baf4933 to 9859c07 Compare November 4, 2024 02:14
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from deca69b to 57104d1 Compare February 4, 2025 14:02
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from 9859c07 to 931d15e Compare February 4, 2025 14:02
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from 57104d1 to fe95d64 Compare April 6, 2025 17:23
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from 931d15e to 76b4553 Compare April 6, 2025 17:23
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from fe95d64 to 24ff5d6 Compare April 19, 2025 08:19
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from 76b4553 to bb76990 Compare April 19, 2025 08:19
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from 24ff5d6 to 0a21746 Compare July 11, 2025 16:26
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch 2 times, most recently from d2b8f2e to c46fbb9 Compare July 11, 2025 17:06
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from 0a21746 to b878d88 Compare July 11, 2025 17:09
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from c46fbb9 to 4bf7017 Compare July 11, 2025 17:09
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from b878d88 to 1591f0b Compare July 11, 2025 17:12
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from 4bf7017 to a7b7545 Compare July 11, 2025 17:13
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.
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/7-simplify-lib-calls branch from a7b7545 to 73b1913 Compare November 8, 2025 09:11
@s-barannikov s-barannikov force-pushed the users/s-barannikov/byte/6-string-info-char-width branch from 1591f0b to 0d66f01 Compare November 8, 2025 09:11
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