summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/cxx2a-thread-local-constinit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Don't elide the use of the thread wrapper for a thread_local constinitRichard Smith2019-10-011-5/+27
| | | | | | | | | variable with non-trivial destruction. We still need to invoke the thread wrapper to trigger registration of the destructor call on thread shutdown. llvm-svn: 373289
* Improve code generation for thread_local variables:Richard Smith2019-09-121-0/+47
Summary: * Don't bother using a thread wrapper when the variable is known to have constant initialization. * Emit the thread wrapper as discardable-if-unused in TUs that don't contain a definition of the thread_local variable. * Don't emit the thread wrapper at all if the thread_local variable is unused and discardable; it will be emitted by all TUs that need it. Reviewers: rjmccall, jdoerfert Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67429 llvm-svn: 371767
OpenPOWER on IntegriCloud