triton-lang / triton

Development repository for the Triton language and compiler
https://triton-lang.org/
MIT License
13.47k stars 1.66k forks source link

[INTERPRETER] Fix lower bound check for block pointers #5201

Closed Jokeren closed 1 day ago

Jokeren commented 2 days ago

We forgot to check offset >= 0 previously.

Now that it should match the semantic in the GPU backend

https://github.com/triton-lang/triton/blob/7bce3613755e26953518962d02315dfd343dc50c/lib/Dialect/Triton/Transforms/RewriteTensorPointer.cpp#L136