vinx13 commented on code in PR #11287:
URL: https://github.com/apache/tvm/pull/11287#discussion_r884007873


##########
src/arith/iter_affine_map.cc:
##########
@@ -1659,7 +1676,7 @@ bool IterMapRewriter::CanProveDivisible(const PrimExpr& 
lhs, const PrimExpr& rhs
   PrimExpr divisor = normalizer.Convert(rhs);
 
   return analyzer_->CanProveEqual(dividend, divisor) ||
-         analyzer_->CanProve(floormod(dividend, divisor) == 0);
+         analyzer_->CanProve(analyzer_->Simplify(floormod(dividend, divisor), 
8) == 0);

Review Comment:
   it would be great to have some explanations here that it need more 
simplification steps



-- 
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