Skip to content

Commit 068c6e8

Browse files
committed
[tosa] : Re-enable PR llvm#135429 with ASAN fix.
1 parent 3898792 commit 068c6e8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)