Skip to content

Commit 45cc743

Browse files
authored
[SandboxVec][DAG][NFC] Add comment about duplicate notes in deps() (#111915)
1 parent 1bf271d commit 45cc743

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ class DGNode {
122122
iterator preds_end(DependencyGraph &DAG) const {
123123
return const_cast<DGNode *>(this)->preds_end(DAG);
124124
}
125+
/// \Returns a range of DAG predecessors nodes. If this is a MemDGNode then
126+
/// this will also include the memory dependency predecessors.
127+
/// Please note that this can include the same node more than once, if for
128+
/// example it's both a use-def predecessor and a mem dep predecessor.
125129
iterator_range<iterator> preds(DependencyGraph &DAG) const {
126130
return make_range(preds_begin(DAG), preds_end(DAG));
127131
}

0 commit comments

Comments
 (0)