We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab18d5 commit 380b8a6Copy full SHA for 380b8a6
llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -349,7 +349,7 @@ struct ClonedBlock {
349
350
typedef std::deque<BasicBlock *> PathType;
351
typedef std::vector<PathType> PathsType;
352
-typedef std::set<const BasicBlock *> VisitedBlocks;
+typedef SmallPtrSet<const BasicBlock *, 8> VisitedBlocks;
353
typedef std::vector<ClonedBlock> CloneList;
354
355
// This data structure keeps track of all blocks that have been cloned. If two
@@ -631,7 +631,7 @@ struct AllSwitchPaths {
631
}
632
633
// We have encountered a cycle, do not get caught in it
634
- if (Visited.find(Succ) != Visited.end())
+ if (Visited.contains(Succ))
635
continue;
636
637
PathsType SuccPaths = paths(Succ, Visited, PathDepth + 1);
0 commit comments