wrongtest-intellif commented on PR #17411:
URL: https://github.com/apache/tvm/pull/17411#issuecomment-2372715743
> do u mind leave a quick comment about what will happen without this PR
In the main branch, this case's indices would not change after narrowing
with i32.
```python
@T.prim_func
def before(A: T.Buffer((16,), "int64")):
for i in range(T.int64(15)):
A[i + T.int64(1)] = A[i] + T.int64(1)
```
The deduction chain is like below:
1. A[i] + T.int64(1) -> 64b
2. A[i] -> 64b
3. indices of load A -> 64b (here is the issue)
4. i -> requires 64b
--
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]