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
I was experimenting in Rust with implementing the ASCII versions of certain unicode predicates in terms of an implementation on ASCII bytes, something like this https://rust.godbolt.org/z/c495YKTsM
I was experimenting in Rust with implementing the ASCII versions of certain unicode predicates in terms of an implementation on ASCII bytes, something like this https://rust.godbolt.org/z/c495YKTsM
Unfortunately, that optimizes much worse than checking against the 32-bit type directly:
Alive2 confirms that converting the former there into the latter is legal: https://alive2.llvm.org/ce/z/_vhQJE
But opt seemingly can't do it today: https://llvm.godbolt.org/z/zdsEsvrsP
Perhaps the way to get there would be to do something like this:
Since alive2 says that's legal https://alive2.llvm.org/ce/z/bETvXP and after that other existing optimizations can get the rest of the way: https://llvm.godbolt.org/z/aEhThW96M
I tried to make a C++ repro as well, which came out with a slightly different, but still suboptimal, output: https://cpp.godbolt.org/z/r5xGxa8bc
The text was updated successfully, but these errors were encountered: