You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Lucien0 (via GitHub)" <gi...@apache.org> on 2023/09/12 02:48:48 UTC
[GitHub] [tvm] Lucien0 opened a new issue, #15726: [Bug] [Arith] Expressions of the same form cannot be simplified correctly
Lucien0 opened a new issue, #15726:
URL: https://github.com/apache/tvm/issues/15726
Hi, I constructed the following case:
```
a = tir.Var("a", "int32")
b = tir.Var("b", "int32")
c = tir.Var("c", "int32")
d = tir.Var("d", "int32")
ana = tvm.arith.Analyzer()
min_expr = T.min(c, d - b)
expr1 = T.max(a + b + min_expr, min_expr + b + a)
expr2 = T.max(a + b + min_expr, a + b + min_expr)
print(ana.simplify(expr1))
print(ana.simplify(expr2))
```
### Expected behavior
It seems that expr1 and expr2 are exactly the same, just in different order.
It is expected that max can be eliminated normally.
### Actual behavior
I print the result

It looks like only expr2 is working properly.
### Environment
TVM commit: 4d7e93cd
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Arith] Expressions of the same form cannot be simplified correctly [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen closed issue #15726: [Bug] [Arith] Expressions of the same form cannot be simplified correctly
URL: https://github.com/apache/tvm/issues/15726
--
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