From 362df0d4b7c2a531d37e50ce657a73eb4e30e4cf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 10 Feb 2007 07:01:05 +0000 Subject: [PATCH] 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 --- lib/Bytecode/Writer/SlotCalculator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1