Skip to content

Commit

Permalink
[mlir][sparse] add linalg elt-wise fusion to sparsifier pipeline (#90924
Browse files Browse the repository at this point in the history
)

yields better IR in general, and all end-to-end tests pass!
  • Loading branch information
aartbik authored May 3, 2024
1 parent 6d7d8e5 commit 1949856
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@

void mlir::sparse_tensor::buildSparsifier(OpPassManager &pm,
const SparsifierOptions &options) {
// Rewrite named linalg ops into generic ops.
// Rewrite named linalg ops into generic ops and apply fusion.
pm.addNestedPass<func::FuncOp>(createLinalgGeneralizeNamedOpsPass());
pm.addNestedPass<func::FuncOp>(createLinalgElementwiseOpFusionPass());

// Sparsification and bufferization mini-pipeline.
pm.addPass(createSparsificationAndBufferizationPass(
Expand Down

0 comments on commit 1949856

Please sign in to comment.