Skip to content

Commit f9e95da

Browse files
committed
DAGNodeWorklist TODO
1 parent ae727e1 commit f9e95da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/Basic/DAGNodeWorklist.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
///
2626
/// The primary API has two methods: intialize() and pop(). Others are provided
2727
/// for flexibility.
28+
///
29+
/// TODO: This also works well for cyclic graph traversal. Particularly CFG
30+
/// traversal. So we should probably just call it GraphNodeWorklist.
2831
template <typename T, unsigned SmallSize> struct DAGNodeWorklist {
2932
llvm::SmallPtrSet<T, SmallSize> nodeVisited;
3033
llvm::SmallVector<T, SmallSize> nodeVector;

0 commit comments

Comments
 (0)