[PATCH] D35005: [ELF] - Do not apply relocations to .debug_ranges when building -gdb-index

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 5 04:17:16 PDT 2017


grimar created this revision.
Herald added a subscriber: emaste.

Looks we do not really need to apply relocations to .debug_ranges section 
when building .gdb_index.

What we need is to scan relocations and take target section indices use addends
as begin
That allows to skip actual relocations computations and speedups building .gdb_index.

When linking llc binary with -gdb-index numbers I got (from 25 runs) were:

- Without this patch: 5,724493319 seconds time elapsed ( +-  0,13% )
- With this path: 5,352222105 seconds time elapsed  ( +-  0,10% )

It is about 6.5% speedup.


https://reviews.llvm.org/D35005

Files:
  ELF/SyntheticSections.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35005.105243.patch
Type: text/x-patch
Size: 4622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170705/fe796808/attachment-0001.bin>


More information about the llvm-commits mailing list