File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
mlir/test/lib/Dialect/Linalg Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ using namespace mlir::linalg;
2424
2525static LogicalResult fuseLinalgOpsGreedily (func::FuncOp f) {
2626 OpBuilder b (f);
27- DenseSet<Operation *> eraseSet;
2827
2928 // Save original Linalg ops, we only want to make a pass over those.
3029 SmallVector<LinalgOp, 8 > linalgOps;
@@ -56,13 +55,6 @@ static LogicalResult fuseLinalgOpsGreedily(func::FuncOp f) {
5655 }
5756 }
5857 }
59- // The `fuseProducerOfBuffer` function performs structural checks and in
60- // particular that no covering read or write exist between the consumer and
61- // the producer. As a consequence, the only fusions that may occur preserve
62- // subsequent dependences and are guaranteed by construction to produce the
63- // whole view. We may thus erase the producer once it is fused.
64- for (auto *e : eraseSet)
65- e->erase ();
6658
6759 return changed ? success () : failure ();
6860}
You can’t perform that action at this time.
0 commit comments