[llvm] r232743 - GlobalDCE: Improve performance for large modules containing comdats.

Chandler Carruth chandlerc at google.com
Thu Mar 19 11:32:39 PDT 2015

On Thu, Mar 19, 2015 at 11:23 AM, Peter Collingbourne <peter at pcc.me.uk>

> +    std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;

I wonder if a DenseMap<Comdat *, TinyPtrVector<GlobalValue *>> would be
better? (Using a sorted vector and std::binary_search naturally.) In
particular, it seems like it might make sense to optimize for the case of a
1:1 correlation between comdat and global.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150319/9668244e/attachment.html>

More information about the llvm-commits mailing list