diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-10 07:01:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-10 07:01:05 +0000 |
commit | 362df0d4b7c2a531d37e50ce657a73eb4e30e4cf (patch) | |
tree | 313e248a8353fb921d1504e50717dce95db70e62 /lib/Bytecode | |
parent | 569b935e6b23c4a0e4ebb2c96603974310ef0587 (diff) |
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
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Writer/SlotCalculator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h index 1dc0cc37bd..8bb87dd434 100644 --- a/lib/Bytecode/Writer/SlotCalculator.h +++ b/lib/Bytecode/Writer/SlotCalculator.h @@ -50,7 +50,7 @@ class SlotCalculator { typedef std::vector<const Value*> TypePlane; std::vector<TypePlane> Table; TypeList Types; - typedef std::map<const Value*, unsigned> NodeMapType; + typedef DenseMap<const Value*, unsigned> NodeMapType; NodeMapType NodeMap; typedef std::map<const Type*, unsigned> TypeMapType; |