From: Chris Lattner Date: Sat, 10 Feb 2007 07:01:05 +0000 (+0000) Subject: Switch NodeMap from an std::map to a DenseMap. This speeds up bcwriting X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=362df0d4b7c2a531d37e50ce657a73eb4e30e4cf;p=oota-llvm.git Switch NodeMap from an std::map to a DenseMap. This speeds up bcwriting of 447.dealII from 3.3s to 1.8s (80% faster). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34138 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h index 1dc0cc37bd3..8bb87dd434a 100644 --- a/lib/Bytecode/Writer/SlotCalculator.h +++ b/lib/Bytecode/Writer/SlotCalculator.h @@ -50,7 +50,7 @@ class SlotCalculator { typedef std::vector TypePlane; std::vector Table; TypeList Types; - typedef std::map NodeMapType; + typedef DenseMap NodeMapType; NodeMapType NodeMap; typedef std::map TypeMapType;