Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hgt312 committed Jun 29, 2021
1 parent 6cc86c8 commit c74629a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tir/analysis/deep_equal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool ExprDeepEqual::operator()(const PrimExpr& lhs, const PrimExpr& rhs) const {
return plhs->dtype == prhs->dtype && plhs->value == prhs->value;
}
if (lhs.as<AnyNode>()) {
return lhs.same_as(rhs);
return false;
}
return DeepCmpSEqualHandler().SEqualReduce(lhs, rhs, false);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/python/unittest/test_arith_rewrite_simplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def test_add_index_simplify():
def test_sub_index_simplify():
ck = RewriteChecker()
x, y, z = te.var("x"), te.var("y"), te.var("z")
a, b, c = tvm.tir.Any(), tvm.tir.Any(), tvm.tir.Any()
a, b = tvm.tir.Any(), tvm.tir.Any(), tvm.tir.Any()

ck.verify(x + y - y, x)
ck.verify(x + y - x, y)
Expand Down

0 comments on commit c74629a

Please sign in to comment.