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 | c44c04af4433382ebc76ab29566e4d17b121a692 (patch) | |
| tree | 4cc6de487139e3c4ff4a7ee987de356cb1e24e3c /llvm/lib/Analysis/IPA/IPModRef.cpp | |
| parent | 6c4005ccfe95ff2e3794fdb9ff2509c757af1307 (diff) | |
| download | bcm5719-llvm-c44c04af4433382ebc76ab29566e4d17b121a692.tar.gz bcm5719-llvm-c44c04af4433382ebc76ab29566e4d17b121a692.zip | |
Change DSGraph stuff to use hash_(set|map) instead of std::(set|map)
This change provides a small (3%) but consistent speedup
llvm-svn: 5460
Diffstat (limited to 'llvm/lib/Analysis/IPA/IPModRef.cpp')
| -rw-r--r-- | llvm/lib/Analysis/IPA/IPModRef.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/IPA/IPModRef.cpp b/llvm/lib/Analysis/IPA/IPModRef.cpp index 48452fe8b16..e04e1094500 100644 --- a/llvm/lib/Analysis/IPA/IPModRef.cpp +++ b/llvm/lib/Analysis/IPA/IPModRef.cpp @@ -118,7 +118,7 @@ void FunctionModRefInfo::computeModRef(const Function &func) // function or we cannot determine the complete set of functions invoked). // DSGraph* FunctionModRefInfo::ResolveCallSiteModRefInfo(CallInst &CI, - std::map<const DSNode*, DSNodeHandle> &NodeMap) + hash_map<const DSNode*, DSNodeHandle> &NodeMap) { // Step #0: Quick check if we are going to fail anyway: avoid // all the graph cloning and map copying in steps #1 and #2. @@ -194,7 +194,7 @@ FunctionModRefInfo::computeModRef(const CallInst& callInst) callSiteModRefInfo[&callInst] = callModRefInfo; // Get a copy of the graph for the callee with the callee inlined - std::map<const DSNode*, DSNodeHandle> NodeMap; + hash_map<const DSNode*, DSNodeHandle> NodeMap; DSGraph* csgp = ResolveCallSiteModRefInfo(const_cast<CallInst&>(callInst), NodeMap); if (!csgp) @@ -238,7 +238,7 @@ public: knownValues.resize(tdGraph.getGraphSize()); // For every identifiable value, save Value pointer in knownValues[i] - for (std::map<Value*, DSNodeHandle>::const_iterator + for (hash_map<Value*, DSNodeHandle>::const_iterator I = tdGraph.getScalarMap().begin(), E = tdGraph.getScalarMap().end(); I != E; ++I) if (isa<GlobalValue>(I->first) || |

