Thanks for the proposal. I agree that it is a valuable problem for dynamic shape.
Here are two questions from me:
- Is it necessary to rewrite
(d1*d2)*d0
intod0*d1*d2
. Can we prove them equal byAnalyzer
directly? - Can we embed the new rule into
tir.Simplify
rather than create a new methodRewriteSimplifier
?
Thanks again for the great work and proposal!