summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/windows-on-arm-itanium-thread-local.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve code generation for thread_local variables:Richard Smith2019-09-121-11/+0
| | | | | | | | | | | | | | | | | | | | | 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
* CodeGen: simplify the CC handling for TLS wrappersSaleem Abdulrasool2016-08-011-0/+11
Use the calling convention of the wrapper directly to set the calling convention to ensure that the calling convention matches. Incorrectly setting the calling convention results in the code path being entirely nullified as InstCombine + SimplifyCFG will prune the mismatched CC calls. llvm-svn: 277390
OpenPOWER on IntegriCloud