[K/N] Custom bitcode optimization pass to avoid multiple loads of TLS

^KT-50075
This commit is contained in:
Pavel Kunyavskiy
2021-12-06 12:26:44 +03:00
committed by Space
parent ff6889ea05
commit 3442631d42
9 changed files with 101 additions and 40 deletions
@@ -55,7 +55,7 @@ private:
ThreadRegistry();
~ThreadRegistry();
static THREAD_LOCAL_VARIABLE Node* currentThreadDataNode_;
static THREAD_LOCAL_VARIABLE Node* currentThreadDataNode_ __attribute__((annotate("current_thread_tlv")));
SingleLockList<ThreadData, Mutex> list_;
};