junrushao1994 commented on PR #11428:
URL: https://github.com/apache/tvm/pull/11428#issuecomment-1175634426

   This PR introduces a regression with those lines: 
https://github.com/apache/tvm/blob/d4be49aec62299275565066b56a0555bafc2ccac/src/tir/transforms/compact_buffer_region.cc#L77-L85
   
   Consider a case below:
   
   ```python
   extent = 960 - max(bx // 18 * 128, 832)
   where bx \in [0, 144)
   ```
   
   Even if `bx` exists in `extent`, the upper bound of the allocation is not 
affected (which is 128). However, the check there introduces a false positive 
which falls back to a much more conservative estimate ([full 
region](https://github.com/apache/tvm/blob/d4be49aec62299275565066b56a0555bafc2ccac/src/tir/transforms/compact_buffer_region.cc#L77-L85)).
   
   


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