https://bugs.llvm.org/show_bug.cgi?id=33539
Bug ID: 33539
Summary: Codegen for TLS variables calls __tls_get_info far too
many times.
Product: new-bugs
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: sstewartgallu...@mylangara.bc.ca
CC: llvm-bugs@lists.llvm.org
Code like https://godbolt.org/g/JiSXBG calls __tls_get_info a bunch of times
instead of just once.
This has to be explicitly worked around like in
https://sstewartgallus.com/git?p=weakrand.git;a=blob_plain;f=src/lib.rs;hb=HEAD
in order to only call __tls_get_info once.
This single optimization sped up one of my benchmarks from 220us to 210us in
some of my heavy concurrent code.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs