Skip to content

Commit

Permalink
[NFC][DominanceFrontier] Replace std::map with DenseMap for DomSetMap…
Browse files Browse the repository at this point in the history
…Type (llvm#70403)
  • Loading branch information
wenju-he authored Oct 30, 2023
1 parent 1c876ff commit dbeaee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/include/llvm/Analysis/DominanceFrontier.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
#ifndef LLVM_ANALYSIS_DOMINANCEFRONTIER_H
#define LLVM_ANALYSIS_DOMINANCEFRONTIER_H

#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Pass.h"
#include "llvm/Support/GenericDomTree.h"
#include <cassert>
#include <map>
#include <utility>

namespace llvm {
Expand All @@ -42,7 +42,7 @@ class DominanceFrontierBase {
// Dom set for a bb. Use SetVector to make iterating dom frontiers of a bb
// deterministic.
using DomSetType = SetVector<BlockT *>;
using DomSetMapType = std::map<BlockT *, DomSetType>; // Dom set map
using DomSetMapType = DenseMap<BlockT *, DomSetType>; // Dom set map

protected:
using BlockTraits = GraphTraits<BlockT *>;
Expand Down

0 comments on commit dbeaee6

Please sign in to comment.