mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
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:
parent
f77e46be6d
commit
8001524f43
@ -14,6 +14,7 @@
|
|||||||
#ifndef LLVM_SUPPORT_MANGLER_H
|
#ifndef LLVM_SUPPORT_MANGLER_H
|
||||||
#define LLVM_SUPPORT_MANGLER_H
|
#define LLVM_SUPPORT_MANGLER_H
|
||||||
|
|
||||||
|
#include "llvm/ADT/DenseMap.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -40,7 +41,7 @@ class Mangler {
|
|||||||
|
|
||||||
/// Memo - This is used to remember the name that we assign a value.
|
/// 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.
|
/// Count - This simple counter is used to unique value names.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user