vinx13 commented on PR #15665:
URL: https://github.com/apache/tvm/pull/15665#issuecomment-1749743038

   The simplification @Lunderberg mentioned should work. Actually we can get 
the extent from the source `IterMark` of the split.
   Say we want to compute `floordiv(lhs, rhs)` where `lhs == 
floormod(floordiv(x, c1), ext)`, `x == IterMark(extent=ext_x)`, and `ext % rhs 
!= 0`.
   
   if we can prove `ext_x // c1 \in [0, ext)`, it can be simplified as 
`floordiv(lhs, rhs) == floordiv(x, c1 * rhs) == IterSplit(x, 
lower_factor=c1*rhs, extent=ceildiv(ext, rhs)`


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