forked from OSchip/llvm-project
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:
parent
df1cbdd645
commit
1aab7a5b2a
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue