Skip to content

[AMD] CanonicalizePointers: Handle different base pointers and offset…#935

Merged
jayfurmanek merged 1 commit into
release/internal/3.6.xfrom
3.6-bufferops-fix
Apr 1, 2026
Merged

[AMD] CanonicalizePointers: Handle different base pointers and offset…#935
jayfurmanek merged 1 commit into
release/internal/3.6.xfrom
3.6-bufferops-fix

Conversation

@jayfurmanek

Copy link
Copy Markdown
Collaborator

Cherry-pick of triton-lang#9541 to 3.6 for buffer ops bug fix.
Applies cleanly.

triton-lang#9541)

`scf.if` and `arith.select` ops can have different base pointers accross
branches. In that case, `FatPtrAttrs` can't keep `smallTensorBase` or
pick one of the branches. Instead, replace `smallTensorBase` (Value)
with `isSmallTensor` (bool) in `FatPtrAttrs` and add a conservative
`merge` function for combining attrs. Also, handle different scalar
offsets properly when handling `arith.select` ops.
@jayfurmanek jayfurmanek merged commit e66439d into release/internal/3.6.x Apr 1, 2026
2 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants