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 4b1b450 commit 6ffa7cdCopy full SHA for 6ffa7cd
mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
@@ -605,9 +605,8 @@ LogicalResult ValueBoundsConstraintSet::computeIndependentBound(
605
worklist.push_back(v);
606
while (!worklist.empty()) {
607
Value next = worklist.pop_back_val();
608
- if (visited.contains(next))
+ if (!visited.insert(next).second)
609
continue;
610
- visited.insert(next);
611
if (llvm::is_contained(independencies, next))
612
return false;
613
// TODO: DominanceInfo could be used to stop the traversal early.
0 commit comments