You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/06/28 21:05:39 UTC

[GitHub] [tvm] MarisaKirisame commented on a change in pull request #8266: [Bugfix] [tir] do not simplify 'Any() - Any()' to 0

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



##########
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:
       ```suggestion
       return false;
   ```
   the code that check same_as already happend at before.




-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org