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
In both cases, the base of TLS is retrieved again if __tls_guard if already true, which is set by the TLS initialization code just once and remains true thereafter. Ideally, the x64 code gen should look like the following. Arm64 code can be optimized in a similar manner.
Consider this example https://godbolt.org/z/nGK9cn6TW
clang-cl 19.1.0 generates the following when targeting x64
and below when targeting arm64
In both cases, the base of TLS is retrieved again if __tls_guard if already true, which is set by the TLS initialization code just once and remains true thereafter. Ideally, the x64 code gen should look like the following. Arm64 code can be optimized in a similar manner.
The text was updated successfully, but these errors were encountered: