[PATCH] GlobalDCE: Improve performance for large modules containing comdats.

Peter Collingbourne peter at pcc.me.uk
Thu Mar 19 11:29:00 PDT 2015


REPOSITORY
  rL LLVM

================
Comment at: lib/Transforms/IPO/GlobalDCE.cpp:50
@@ -49,2 +49,3 @@
     SmallPtrSet<Constant *, 8> SeenConstants;
+    std::multimap<Comdat *, GlobalValue *> ComdatMembers;
 
----------------
rafael wrote:
> Would unordered_multimap be any better?
Marginally, according to profiling, but it might be noise.

http://reviews.llvm.org/D8431

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list