Skip to content

Commit d399ada

Browse files
committed
[Arith] Support dtype promotion in TIR comparison expr creation
1 parent 678e76b commit d399ada

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/arith/int_constraints.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ Array<PrimExpr> AsConditions(const Array<Var>& variables, const Map<Var, IntGrou
4949
const auto& bnds = bounds[v];
5050
PrimExpr lhs = bnds->coef * v;
5151
for (const PrimExpr& rhs : bnds->equal) {
52-
res.push_back(tir::EQ(lhs, rhs));
52+
res.push_back(lhs == rhs);
5353
}
5454
for (const PrimExpr& rhs : bnds->lower) {
55-
res.push_back(tir::GE(lhs, rhs));
55+
res.push_back(lhs >= rhs);
5656
}
5757
for (const PrimExpr& rhs : bnds->upper) {
58-
res.push_back(tir::LE(lhs, rhs));
58+
res.push_back(lhs <= rhs);
5959
}
6060
}
6161
for (const PrimExpr& e : relations) {

0 commit comments

Comments
 (0)