You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The asm generated for b < 128 || b >= 192 is not ideal, as it computes
both sub-inequalities. This patch replaces it with bit magic.
Fixesrust-lang#32471
Bit-magic for faster is_char_boundary
The asm generated for b < 128 || b >= 192 is not ideal, as it computes
both sub-inequalities. This patch replaces it with bit magic.
Fixesrust-lang#32471
Testcase:
Excerpt from the assembly:
This is generated from the expression
b < 128 || b >= 192
. The code should look more like this:LLVM probably should be able to perform this optimization, but it looks like it's confusing itself by converting
b < 128
into a shift.CC @bluss.
The text was updated successfully, but these errors were encountered: