[SR-9426] Calculator inlining #51890
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
SILOptimizer
Area → compiler: SIL optimization passes
Additional Detail from JIRA
md5: 3f39af843a7c6094e1e2b198be5c8d2b
Issue Description:
The Calculator benchmark, on 4.2, would choose not to inline String equality. Even if I drop the `@inline(__always)`, on master's `_stringCompare`, it will still be inlined. This results in an extra branch surrounding every equality call, which adds up for long switch cases (where bitwise equality would only happen 1/N on average).
What is the best way for me to address this? Should there be a custom annotation here?
The text was updated successfully, but these errors were encountered: