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
773773 sliceOp.getStart (), size_op);
774774
775775 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-
782776 return success ();
783777 }
784778};
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> {
12141214}
12151215
12161216
1217- // ----
1217+ // -----
12181218// CHECK-LABEL: func.func @slice_dynamic_size_static_output_canonicalize(
12191219// CHECK-SAME: %[[ARG0:.*]]: tensor<2x60x59x?xf32>) -> tensor<2x60x58x?xf32> {
12201220// 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