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.

llvm-svn: 52787
This commit is contained in:
Owen Anderson 2008-06-26 17:20:16 +00:00
parent df1cbdd645
commit 1aab7a5b2a
1 changed files with 2 additions and 1 deletions

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.
///