We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3898792 commit 068c6e8Copy full SHA for 068c6e8
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
@@ -773,12 +773,6 @@ struct SliceDynamicSizeCanonicalization
773
sliceOp.getStart(), size_op);
774
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
return success();
783
}
784
};
0 commit comments