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 b88aced commit 7be6ea1Copy full SHA for 7be6ea1
mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
@@ -465,9 +465,8 @@ bool AnalysisState::isValueRead(Value value) const {
465
466
while (!workingSet.empty()) {
467
OpOperand *uMaybeReading = workingSet.pop_back_val();
468
- if (visited.contains(uMaybeReading))
+ if (!visited.insert(uMaybeReading).second)
469
continue;
470
- visited.insert(uMaybeReading);
471
472
// Skip over all ops that neither read nor write (but create an alias).
473
if (bufferizesToAliasOnly(*uMaybeReading))
0 commit comments