Skip to content

Commit

Permalink
Removed dead code check for typecast (#1483)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajakovljevicTT authored Dec 9, 2024
1 parent 6c4a4fa commit 231fa95
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Conversion/TTIRToTTNN/TTIRToTTNN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -846,10 +846,6 @@ class TypecastOpConversionPattern

DataType outputDataType = outputLayoutAttr.getDataType();

if (op->getUsers().empty()) {
return rewriter.notifyMatchFailure(
op, "ttir.typecast op should have at least one use.");
}
rewriter.replaceOpWithNewOp<ttnn::TypecastOp>(
op, this->getTypeConverter()->convertType(op.getType(0)), input,
outputDataType);
Expand Down

0 comments on commit 231fa95

Please sign in to comment.