[PATCH] LLD: Use std::vector to store SimpleReferences instead of linked list.

Rui Ueyama ruiu at google.com
Mon Mar 9 13:54:23 PDT 2015


Previously, SimpleReferences has two pointers to previous and next references,
making them elements of linked lists. I don't know how this design choice was
made, but it looks like we can just use plain std::vector instead of std::ilist.
Performance-wise this patch is neutral.

http://reviews.llvm.org/D8182

Files:
  include/lld/Core/Simple.h

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8182.21509.patch
Type: text/x-patch
Size: 5752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150309/66bdd950/attachment.bin>


More information about the llvm-commits mailing list