Skip to content

Commit 419e7b8

Browse files
authored
[NFC] Clean up TestLinalgGreedyFusion (#94430)
Linalg fusion-on-memrefs are removed in dc37dc8. There is nothing being inserted in the erase set. Remove the useless code.
1 parent c8c3b8b commit 419e7b8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mlir/test/lib/Dialect/Linalg/TestLinalgFusionTransforms.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ using namespace mlir::linalg;
2424

2525
static 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
}

0 commit comments

Comments
 (0)