[PATCH] D36963: Use sorting instead of a lot of stable_partitions for `ICF::segregate` function

Alex Telishev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 23 15:39:31 PDT 2017


alex.telishev updated this revision to Diff 112465.
alex.telishev added a comment.

Ok, everything become much simpler after using map from non-`DefinedRegular` symbol pointers to some increasing indexes to compare them instead of pointers. Map is usually very small,  so practically no efficiency loss here.


https://reviews.llvm.org/D36963

Files:
  lld/COFF/ICF.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36963.112465.patch
Type: text/x-patch
Size: 7985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170823/21e7791e/attachment-0001.bin>


More information about the llvm-commits mailing list