This adds a truly minimum LTO implementation. It doesn't even handle undefined symbols.
The idea is to grow it with the test that were written for the gold plugin. One test at time so that each step is a simple patch.
Paths
| Differential D17172
Minimum LTO implementation ClosedPublic Authored by • rafael on Feb 11 2016, 3:17 PM.
Details
Summary This adds a truly minimum LTO implementation. It doesn't even handle undefined symbols. The idea is to grow it with the test that were written for the gold plugin. One test at time so that each step is a simple patch.
Diff Detail Event Timeline• rafael updated this object.
This revision is now accepted and ready to land.Feb 12 2016, 9:52 AM
Revision Contents
Diff 47811 ELF/Driver.cpp
ELF/InputFiles.h
ELF/InputFiles.cpp
ELF/OutputSections.cpp
ELF/SymbolTable.h
ELF/SymbolTable.cpp
ELF/Symbols.h
ELF/Symbols.cpp
test/ELF/lto/lto-start.ll
|
Do you know the cost of this initialization? (I mean if it is not cheap, say if it takes more than 10 milliseconds, then we want to do that lazily.)