Use a DenseMap instead of an std::map for mangled name lookup. This is

improves AsmPrinter runtime on instcombine from 0.3920s to 0.3836s.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-06-26 17:20:16 +00:00
parent f77e46be6d
commit 8001524f43

View File

@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_MANGLER_H
#define LLVM_SUPPORT_MANGLER_H
#include "llvm/ADT/DenseMap.h"
#include <map>
#include <set>
#include <string>
@ -40,7 +41,7 @@ class Mangler {
/// Memo - This is used to remember the name that we assign a value.
///
std::map<const Value*, std::string> Memo;
DenseMap<const Value*, std::string> Memo;
/// Count - This simple counter is used to unique value names.
///