Skip to content

Commit c654228

Browse files
committed
Fix compiler error
1 parent 51bc032 commit c654228

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -304,19 +304,6 @@ std::optional<Value> getConstTensor<double>(PatternRewriter &rewriter,
304304
return const_op.getResult();
305305
}
306306

307-
static LogicalResult checkValidityOfCast(Type src, Type dest) {
308-
if (src == dest)
309-
return success();
310-
311-
auto isValid = [](Type ty) {
312-
return ty.isInteger(1) || ty.isInteger(8) || ty.isInteger(16) ||
313-
ty.isInteger(32) || ty.isInteger(64) || ty.isBF16() || ty.isF16() ||
314-
ty.isF32() || ty.isF64() || ty.isFloat8E4M3() || ty.isFloat8E5M2();
315-
};
316-
317-
return success(isValid(src) && isValid(dest));
318-
}
319-
320307
// Template specialization for float
321308
LogicalResult tosaCastTensorToType(PatternRewriter &rewriter, Operation *op,
322309
Value src, Type destType, Value &result) {

0 commit comments

Comments
 (0)