Implements @tlsld (LD to LE) and @tlsgd (GD to LE) optimizations.
Patch does not implement the GD->IE case for @tlsgd, I will implement it in separate patch.
This one partially intersects with http://reviews.llvm.org/D14713.
Paths
| Differential D14870
[ELF2] - Implemented optimizations for @tlsld and @tlsgd ClosedPublic Authored by grimar on Nov 20 2015, 5:04 AM.
Details Summary Implements @tlsld (LD to LE) and @tlsgd (GD to LE) optimizations. Patch does not implement the GD->IE case for @tlsgd, I will implement it in separate patch.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Nov 25 2015, 1:42 PM Closed by commit rL254101: [ELF] - Implemented optimizations for @tlsld and @tlsgd (authored by grimar). · Explain WhyNov 25 2015, 1:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 41141 ELF/InputSection.cpp
ELF/Target.h
ELF/Target.cpp
ELF/Writer.cpp
test/ELF/tls-opt.s
|
It is not obvious that Rels.begin() is a randomly-accessible iterator in this context, so this is a bit alarming. Probably it is better to write