aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/CloneTrace.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-03 00:08:31 +0000
committerChris Lattner <sabre@nondot.org>2007-02-03 00:08:31 +0000
commit5e665f559419c7f58a4fd9360cd488f065505c44 (patch)
treeb0b885dc43015823c992923bd3a03b0cb4defa7b /lib/Transforms/Utils/CloneTrace.cpp
parent4642ca6589d3002861963744a157169f15d1ee90 (diff)
Switch inliner over to use DenseMap instead of std::map for ValueMap. This
speeds up the inliner 16%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneTrace.cpp')
-rw-r--r--lib/Transforms/Utils/CloneTrace.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/CloneTrace.cpp b/lib/Transforms/Utils/CloneTrace.cpp
index 5bfd9893d7..97e57b2ca4 100644
--- a/lib/Transforms/Utils/CloneTrace.cpp
+++ b/lib/Transforms/Utils/CloneTrace.cpp
@@ -26,7 +26,7 @@ using namespace llvm;
std::vector<BasicBlock *>
llvm::CloneTrace(const std::vector<BasicBlock*> &origTrace) {
std::vector<BasicBlock *> clonedTrace;
- std::map<const Value*, Value*> ValueMap;
+ DenseMap<const Value*, Value*> ValueMap;
//First, loop over all the Basic Blocks in the trace and copy
//them using CloneBasicBlock. Also fix the phi nodes during
@@ -92,7 +92,7 @@ llvm::CloneTrace(const std::vector<BasicBlock*> &origTrace) {
/// saved in ValueMap.
///
void llvm::CloneTraceInto(Function *NewFunc, Trace &T,
- std::map<const Value*, Value*> &ValueMap,
+ DenseMap<const Value*, Value*> &ValueMap,
const char *NameSuffix) {
assert(NameSuffix && "NameSuffix cannot be null!");