Skip to content

Commit

Permalink
[mlir][transform] replace original op to loop ops (#83537)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Mar 4, 2024
1 parent 79e8f29 commit 0597644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -2121,6 +2121,7 @@ DiagnosedSilenceableFailure transform::ConvertToLoopsOp::applyToOne(
scf::lowerToLoopsUsingSCFForOp(rewriter, target);
if (failed(loops))
return emitDefaultDefiniteFailure(target);
rewriter.eraseOp(target);
return DiagnosedSilenceableFailure::success();
}

Expand Down
Expand Up @@ -33,6 +33,7 @@ module attributes {transform.with_named_sequence} {
// CHECK: %[[MULF:.+]] = arith.mulf %[[LHS]], %[[RHS]]
// CHECK: %[[ADDF:.+]] = arith.addf %[[OUT]], %[[MULF]]
// CHECK: memref.store %[[ADDF]], %[[ARG2]][%[[IV0]], %[[IV1]]]
// CHECK-NOT: linalg.matmul ins(%arg0, %arg1 : memref<?x?xf32>, memref<?x?xf32>)

// -----

Expand Down

0 comments on commit 0597644

Please sign in to comment.