[mlir][transform] replace original op to loop ops (#83537)
(cherry picked from commit 0597644a6466ae9148b0b41cb8f95d5022e045c2)
This commit is contained in:
parent
47aac495c8
commit
e0f0c463b5
@ -2092,6 +2092,7 @@ DiagnosedSilenceableFailure transform::ConvertToLoopsOp::applyToOne(
|
||||
scf::lowerToLoopsUsingSCFForOp(rewriter, target);
|
||||
if (failed(loops))
|
||||
return emitDefaultDefiniteFailure(target);
|
||||
rewriter.eraseOp(target);
|
||||
return DiagnosedSilenceableFailure::success();
|
||||
}
|
||||
|
||||
|
@ -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>)
|
||||
|
||||
// -----
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user