[PATCH] D35153: Use DenseMap instead std::map for GVSummaryMapTy

Dehao Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 9 06:14:45 PDT 2017


danielcdh created this revision.
Herald added a subscriber: sanjoy.

Frontend change for https://reviews.llvm.org/D35148


https://reviews.llvm.org/D35153

Files:
  lib/CodeGen/BackendUtil.cpp


Index: lib/CodeGen/BackendUtil.cpp
===================================================================
--- lib/CodeGen/BackendUtil.cpp
+++ lib/CodeGen/BackendUtil.cpp
@@ -998,7 +998,7 @@
                               std::unique_ptr<raw_pwrite_stream> OS,
                               std::string SampleProfile,
                               BackendAction Action) {
-  StringMap<std::map<GlobalValue::GUID, GlobalValueSummary *>>
+  StringMap<DenseMap<GlobalValue::GUID, GlobalValueSummary *>>
       ModuleToDefinedGVSummaries;
   CombinedIndex->collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35153.105708.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170709/ec789183/attachment-0001.bin>


More information about the cfe-commits mailing list