This is an archive of the discontinued LLVM Phabricator instance.

[lto] Record whether a variable is TLS.
ClosedPublic

Authored by silvas on Mar 8 2016, 4:24 PM.

Details

Summary

I'm not sure whether the if (GV) is needed; I'm just following the
code above which is checking the same thing. No tests fail when I remove
both if (GV) checks.
Rafael, any ideas?

Diff Detail

Repository
rL LLVM

Event Timeline

silvas updated this revision to Diff 50088.Mar 8 2016, 4:24 PM
silvas retitled this revision from to [lto] Record whether a variable is TLS..
silvas updated this object.
silvas added a reviewer: rafael.
silvas added subscribers: llvm-commits, Bigcheese.
rafael edited edge metadata.Mar 8 2016, 4:30 PM
rafael added a subscriber: rafael.

The !GV case is for symbols defined in inline assembly.

Now that I think of it, we should probably drop it for now. It will
be clear when adding inline assembly.

Cheers,
Rafael

silvas updated this revision to Diff 50089.Mar 8 2016, 4:38 PM
silvas edited edge metadata.

Update for r262972

rafael accepted this revision.Mar 8 2016, 4:45 PM
rafael edited edge metadata.

LGTM with nit.

test/ELF/lto/Inputs/tls-mixed.s
3 ↗(On Diff #50088)

Why do you need the alignment?

This revision is now accepted and ready to land.Mar 8 2016, 4:45 PM
This revision was automatically updated to reflect the committed changes.