http://llvm.org/bugs/show_bug.cgi?id=14353

             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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


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

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:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121112/155805.html

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to