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 | 9082be2593b1805adc6bc75350c69be0b9585d5b (patch) | |
tree | 8e626c3a3f61b977b77f63874c7ba1c28715fd11 /llvm/lib/Bytecode/Writer/SlotCalculator.h | |
parent | 3541003208e47f3acc122013bc4e0aa7140c9a1d (diff) | |
download | bcm5719-llvm-9082be2593b1805adc6bc75350c69be0b9585d5b.tar.gz bcm5719-llvm-9082be2593b1805adc6bc75350c69be0b9585d5b.zip |
Switch NodeMap from an std::map to a DenseMap. This speeds up bcwriting
of 447.dealII from 3.3s to 1.8s (80% faster).
llvm-svn: 34138
Diffstat (limited to 'llvm/lib/Bytecode/Writer/SlotCalculator.h')
-rw-r--r-- | llvm/lib/Bytecode/Writer/SlotCalculator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.h b/llvm/lib/Bytecode/Writer/SlotCalculator.h index 1dc0cc37bd3..8bb87dd434a 100644 --- a/llvm/lib/Bytecode/Writer/SlotCalculator.h +++ b/llvm/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; |