Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tirx/ir/data_type_rewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ Expr IndexDataTypeNormalizer::VisitExpr_(const CastNode* op) {
// has some other purpose, and we should not unwrap the cast.
PrimType dtype = op->ty.as_or_throw<PrimType>();
if (is_enabled_ && CanRewriteDType(dtype)) {
PrimExpr value = IndexDataTypeNormalizer::VisitPrimExpr(op->value);
PrimExpr value = this->VisitPrimExpr(op->value);
return value.ty() == target_data_type_ ? value : Cast(target_data_type_, value);
}
return IndexDataTypeRewriter::VisitExpr_(op);
Expand Down
Loading