File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -773,12 +773,6 @@ struct SliceDynamicSizeCanonicalization
773
773
sliceOp.getStart (), size_op);
774
774
775
775
rewriter.replaceOp (sliceOp, newSliceOp.getResult ());
776
-
777
- // Remove const_shape size op when it no longer has use point.
778
- Operation *sizeConstShape = sliceOp.getSize ().getDefiningOp ();
779
- if (sizeConstShape->getResult (0 ).hasOneUse ())
780
- rewriter.eraseOp (sizeConstShape);
781
-
782
776
return success ();
783
777
}
784
778
};
Original file line number Diff line number Diff line change @@ -1214,7 +1214,7 @@ func.func @do_not_fold_intdiv_division_by_0() -> tensor<1x24x2xi32> {
1214
1214
}
1215
1215
1216
1216
1217
- // ----
1217
+ // -----
1218
1218
// CHECK-LABEL: func.func @slice_dynamic_size_static_output_canonicalize(
1219
1219
// CHECK-SAME: %[[ARG0:.*]]: tensor<2x60x59x?xf32>) -> tensor<2x60x58x?xf32> {
1220
1220
// CHECK: %[[START:.*]] = tosa.const_shape {values = dense<0> : tensor<4xindex>} : () -> !tosa.shape<4>
You can’t perform that action at this time.
0 commit comments