[PATCH] D38916: [GlobalDCE] Use DenseMap instead of unordered_multimap for GVDependencies.

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 15:14:00 PDT 2017


davide accepted this revision.
davide added inline comments.
This revision is now accepted and ready to land.


================
Comment at: include/llvm/Transforms/IPO/GlobalDCE.h:38
   /// Global -> Global that uses this global.
-  std::unordered_multimap<GlobalValue *, GlobalValue *> GVDependencies;
+  DenseMap<GlobalValue *, SmallPtrSet<GlobalValue *, 4>> GVDependencies;
 
----------------
Why 4 ?


https://reviews.llvm.org/D38916





More information about the llvm-commits mailing list