[PATCH] D45399: Split SectionPiece in its parts

Rafael Avila de Espindola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 18:53:39 PDT 2018


espindola created this revision.
espindola added a reviewer: ruiu.
Herald added subscribers: arichardson, emaste.

More testing in an oldish xeon shows that almost half of the time in the getOffset method is because of one memory access, the one fetching OutputOff in

  return Pieces[It->second].OutputOff;

putting all the OutputOff in a single vector improves it.

Having the Hashes in their own vector has the additional nice property that we can free it.

I am still benchmarking it.


https://reviews.llvm.org/D45399

Files:
  ELF/InputSection.cpp
  ELF/InputSection.h
  ELF/SyntheticSections.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45399.141466.patch
Type: text/x-patch
Size: 7430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180407/be540a08/attachment.bin>


More information about the llvm-commits mailing list