This reduces the .rodata of scyladb from 4501932 to 4334639 bytes (1.038 times smaller).
I don't think it is critical to support tail merging, just exact duplicates, but given the code organization it was actually a bit easier to support both.
Paths
| Differential D17409
Add support for merging strings with alignment larger than one char ClosedPublic Authored by • rafael on Feb 18 2016, 1:19 PM.
Details
Summary This reduces the .rodata of scyladb from 4501932 to 4334639 bytes (1.038 times smaller). I don't think it is critical to support tail merging, just exact duplicates, but given the code organization it was actually a bit easier to support both.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Feb 18 2016, 1:33 PM
Revision Contents
Diff 48391 ELF/InputFiles.cpp
ELF/OutputSections.h
ELF/OutputSections.cpp
ELF/Writer.cpp
test/ELF/merge-string-align.s
test/ELF/tail-merge-string-align.s
|