hgt312 commented on a change in pull request #8266:
URL: https://github.com/apache/tvm/pull/8266#discussion_r660268841



##########
File path: tests/python/unittest/test_arith_rewrite_simplify.py
##########
@@ -275,6 +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()

Review comment:
       Nice catch!

##########
File path: src/tir/analysis/deep_equal.cc
##########
@@ -59,6 +59,9 @@ bool ExprDeepEqual::operator()(const PrimExpr& lhs, const 
PrimExpr& rhs) const {
     auto* prhs = rhs.as<IntImmNode>();
     return plhs->dtype == prhs->dtype && plhs->value == prhs->value;
   }
+  if (lhs.as<AnyNode>()) {
+    return lhs.same_as(rhs);

Review comment:
       Nice catch!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to