[PATCH] D49493: [DebugInfo] Reduce debug_str_offsets section size

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 13:14:50 PDT 2018


Anyone thought about whether it'd be worth making the indexed V unindexed
case work implicitly? If we were willing to add another pointer to
DwarfStringPoolEntryRef (doubling its size, admittedly) - back to the
string pool itself - then we could index any string where the
DwarfStringPoolEntryRef was asked for an index, and otherwise skip that?
Rather than having to declare up-front whether an index was required.

(if we wanted to get super-fancy, maybe we could emit indexes as assembly
expressions ((str_label/str_begin_label)/word_size) then you wouldn't have
to increase the size of DwarfStringPoolEntryRef, because the absolute index
wouldn't have to be known ahead of time - it'd be computed by the assembler
instead - which is just moving the work around, of course)

On Thu, Jul 19, 2018 at 9:57 AM Jonas Devlieghere via Phabricator <
reviews at reviews.llvm.org> wrote:

> JDevlieghere accepted this revision.
> JDevlieghere added a comment.
> This revision is now accepted and ready to land.
>
> I'm happy with this, LGTM!
>
>
> Repository:
>   rL LLVM
>
> https://reviews.llvm.org/D49493
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180719/27872629/attachment.html>


More information about the llvm-commits mailing list