An internal linker has support for merging identical data and in some cases it can be a significant win.
This is behind an off by default flag so it has to be requested explicitly.
Paths
| Differential D41060
Add an option for ICFing data ClosedPublic Authored by • rafael on Dec 10 2017, 5:15 PM.
Details
Summary An internal linker has support for merging identical data and in some cases it can be a significant win. This is behind an off by default flag so it has to be requested explicitly.
Diff Detail Event TimelineComment Actions We used to merge data for COFF but not anymore because it causes nasty problems that are hard to find and debug. E.g. https://bugs.chromium.org/p/chromium/issues/detail?id=682773#c24 Are you sure you don't have that kind of issue? Comment Actions Got it. If you are using this option from the beginning, it should be fine. It's not a big deal, but --icf-data sounds a bit odd, because ICF is short for Identical *Code* Folding. I have no better idea though.
This revision is now accepted and ready to land.Dec 11 2017, 3:13 PM
Revision Contents
Diff 126304 ELF/Config.h
ELF/Driver.cpp
ELF/ICF.cpp
ELF/Options.td
test/ELF/icf9.s
|
Please rewrite the description so that it doesn't sound odd even if it's not displayed after --icf.