<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 16, 2017 at 11:27 AM George Rimar <<a href="mailto:grimar@accesssoftek.com">grimar@accesssoftek.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​But could not we for example do split dwarf, but for example do dedup of types ?<br></p></div></blockquote><div>Yep, that is already supported - but the type deduplication happens in the DWP tool/generation, not in the linker. The linker inputs (.o files) don't contain any of the type information, only the .dwo files contain the type information, etc, in a Fission build. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif"><p>
</p>
<p>I do not mean right now, but in a theory ?<br>
</p></div><div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<div id="m_5880631613026684642Signature">
<div name="divtagdefaultwrapper">
<div class="m_5880631613026684642BodyFragment"><font size="2">
<div class="m_5880631613026684642PlainText">Best regards,<br>
George | Developer | <span style="background-color:rgb(255,255,255);color:rgb(33,33,33);font-family:Calibri,sans-serif;font-size:13.3333px">Access Softek, Inc</span></div>
</font></div>
</div>
</div>
</div><div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif"><div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_5880631613026684642divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>От:</b> David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>><br>
<b>Отправлено:</b> 16 декабря 2017 г. 22:25<br>
<b>Кому:</b> George Rimar<br>
<b>Копия:</b> Sean Silva; <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>; Rui Ueyama; Rafael Espindola<br>
<b>Тема:</b> Re: [llvm-dev] [RFC] - Deduplication of debug information in linkers (LLD).</font>
<div> </div>
</div></div></div><div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif"><div style="color:rgb(33,33,33)">
<div>
<div dir="ltr"><br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Dec 16, 2017 at 4:08 AM George Rimar <<a href="mailto:grimar@accesssoftek.com" target="_blank">grimar@accesssoftek.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="font-size:12pt;color:rgb(33,33,33)">></span><span style="font-size:12pt;color:rgb(33,33,33)">Wasn't our (lld/ELF's) position on debug info size that we should focus on providing a great split-dwarf workflow and not try go too far out of our
 way to deduplicate >or otherwise reduce debug info size inside LLD? I recall there being some patches that made linking of large debug binaries like 1.5GB+ clang faster, but we decided to >reject those changes because split-dwarf was the "right" solution.</span><br>
</p>
</div>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33)">
<div>
<div dir="ltr">
<div>> </div>
<div>>Rafael, Rui?</div>
<div>> </div>
<div>>(I even recall Rafael saying at one point that a great split-dwarf workflow was one of the key things he considered as necessary for him to consider LLD "done")</div>
<div>> </div>
<div>>-- Sean Silva</div>
</div>
<div class="gmail_extra"><br>
</div>
</div>
</div>
</div>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33)">
<div>
<div class="gmail_extra">I probably not the right person to suggest (still mostly learning here for now, so would like to be on a fence in general), </div>
<div class="gmail_extra">but it looks for me that splitting <span style="color:rgb(33,33,33);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">
DWARF </span>and deduplicating DWARF is a bit othogonal things.<br>
</div>
<div class="gmail_extra">It feels for me that there is a room to do both things and have a benefit from combinatiion ?<br>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
The two features/directions don't really compose - if the DWARF is split, then the linker never sees the DWARF (it's not in the object files), so has no deduplication to do. (llvm-dwp might see it, so the deduplication can happen there)<br>
 </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33)">
<div>
<div class="gmail_extra"></div>
</div>
</div>
</div>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33)">
<div>
<div class="gmail_extra"><span style="font-size:12pt"><br>
</span></div>
<div class="gmail_extra">George.<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div></div></blockquote></div></div>