diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-01 04:52:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-01 04:52:08 +0000 |
commit | 41c04f730b4fdce98b35603d1b02a1dc6b81e589 (patch) | |
tree | f08dfc8ff8348bc104ab699169d52d3673e55c6e /lib/Analysis/DataStructure/TopDownClosure.cpp | |
parent | cbf2a3e5c1a88106c0085885772343bc9ee6b9c1 (diff) |
Change DSGraph stuff to use hash_(set|map) instead of std::(set|map)
This change provides a small (3%) but consistent speedup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/TopDownClosure.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index b867f7edff..367f6a1d27 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -40,7 +40,7 @@ bool TDDataStructures::run(Module &M) { // our memory... here... // void TDDataStructures::releaseMemory() { - for (std::map<const Function*, DSGraph*>::iterator I = DSInfo.begin(), + for (hash_map<const Function*, DSGraph*>::iterator I = DSInfo.begin(), E = DSInfo.end(); I != E; ++I) delete I->second; @@ -140,8 +140,8 @@ void TDDataStructures::calculateGraph(Function &F) { << "'\n"); // Clone our current graph into the callee... - std::map<Value*, DSNodeHandle> OldValMap; - std::map<const DSNode*, DSNodeHandle> OldNodeMap; + hash_map<Value*, DSNodeHandle> OldValMap; + hash_map<const DSNode*, DSNodeHandle> OldNodeMap; CG.cloneInto(Graph, OldValMap, OldNodeMap, DSGraph::StripModRefBits | DSGraph::KeepAllocaBit | DSGraph::DontCloneCallNodes); |