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 8d8bede commit 65a5b18Copy full SHA for 65a5b18
mlir/lib/Dialect/Shape/Transforms/OutlineShapeComputation.cpp
@@ -292,10 +292,8 @@ void OutlineShapeComputationPass::getClusterFromValue(
292
cluster.insert(op);
293
for (Value inp : op->getOperands()) {
294
Operation *inpDefOp = inp.getDefiningOp();
295
- if (nullptr != inpDefOp && !visited.contains(inpDefOp)) {
296
- visited.insert(inpDefOp);
+ if (nullptr != inpDefOp && visited.insert(inpDefOp).second)
297
queue.push(inpDefOp);
298
- }
299
}
300
301
0 commit comments