mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
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
This commit is contained in:
@@ -218,13 +218,13 @@ public:
|
||||
|
||||
/// remapLinks - Change all of the Links in the current node according to the
|
||||
/// specified mapping.
|
||||
void remapLinks(std::map<const DSNode*, DSNodeHandle> &OldNodeMap);
|
||||
void remapLinks(hash_map<const DSNode*, DSNodeHandle> &OldNodeMap);
|
||||
|
||||
/// markReachableNodes - This method recursively traverses the specified
|
||||
/// DSNodes, marking any nodes which are reachable. All reachable nodes it
|
||||
/// adds to the set, which allows it to only traverse visited nodes once.
|
||||
///
|
||||
void markReachableNodes(std::set<DSNode*> &ReachableNodes);
|
||||
void markReachableNodes(hash_set<DSNode*> &ReachableNodes);
|
||||
|
||||
private:
|
||||
friend class DSNodeHandle;
|
||||
|
Reference in New Issue
Block a user