Use DenseMap instead std::map for GVSummaryMapTy
authorDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 20:31:37 +0000 (20:31 +0000)
committerDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 20:31:37 +0000 (20:31 +0000)
Summary: Frontend change for https://reviews.llvm.org/D35148

Reviewers: tejohnson

Reviewed By: tejohnson

Subscribers: sanjoy, cfe-commits

Differential Revision: https://reviews.llvm.org/D35153

llvm-svn: 307584

clang/lib/CodeGen/BackendUtil.cpp

index 9b3850a..513896d 100644 (file)
@@ -998,7 +998,7 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
                               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);