]> granicus.if.org Git - llvm/commit
Use DenseMap instead std::map for GVSummaryMapTy.
authorDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 20:12:54 +0000 (20:12 +0000)
committerDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 20:12:54 +0000 (20:12 +0000)
commita569cab4048c240f3e888186a98ddd5e9f6f5f8a
tree8212acc83f85af4b3d7c0372ef7487d3e5118381
parentd380c14b7a72c2c229551f9762a04233ad671e91
Use DenseMap instead std::map for GVSummaryMapTy.

Summary: This speeds-up thin-link by ~47% for large programs.

Reviewers: tejohnson

Reviewed By: tejohnson

Subscribers: sanjoy, llvm-commits, mehdi_amini

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307578 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/ModuleSummaryIndex.h
lib/LTO/LTO.cpp