Skip to content

Commit e49d774

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

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
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
};

mlir/test/Dialect/Tosa/canonicalize.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)