[llvm] [PartialInlining] Use DenseSet instead of DenseMap (NFC) (PR #127170)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 14 01:27:55 PST 2025


================
@@ -412,9 +412,9 @@ PartialInlinerImpl::computeOutliningColdRegionsInfo(
   bool ColdCandidateFound = false;
   BasicBlock *CurrEntry = EntryBlock;
   std::vector<BasicBlock *> DFS;
-  DenseMap<BasicBlock *, bool> VisitedMap;
+  DenseSet<BasicBlock *> VisitedSet;
----------------
kazutakahirata wrote:

Revised.  Thanks!

https://github.com/llvm/llvm-project/pull/127170


More information about the llvm-commits mailing list