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
str::starts_with(char) and str::ends_with(char) converts the 4-byte character codepoint into a 1-4 byte buffer on the stack, then compares against the start/end of the str's bytes contents. LLVM is able to remove the stack allocation when the char is a single byte, but if it is 2 or more, it is not able:
str::starts_with(char)
andstr::ends_with(char)
converts the 4-byte character codepoint into a 1-4 byte buffer on the stack, then compares against the start/end of thestr
's bytes contents. LLVM is able to remove the stack allocation when thechar
is a single byte, but if it is 2 or more, it is not able:https://godbolt.org/z/zjhanPx7j
https://alive2.llvm.org/ce/z/MiAEjE
The text was updated successfully, but these errors were encountered: