[LLVMbugs] [Bug 14353] New: TLS variables should not be Constant

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 15 04:10:39 PST 2012


             Bug #: 14353
           Summary: TLS variables should not be Constant
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

TLS variables are a special case of GlobalVariable, which inherit from

But a TLS variable is not really Constant, it is different for different
threads. This can cause subtle bugs, such as Bug 14309, if the optimizers fail
to take it into account.

Some discussion here:

It would be good if we could find a way so that TLS variables were not Constant
to avoid optimizers getting this wrong.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list