Skip to content

[DispatchCreation] Avoid hoisting set encodings on scalar tensors - #21376

Merged
jtuyls merged 1 commit into
iree-org:mainfrom
jtuyls:dont-hoist-scalar-set-encoding
Jul 15, 2025
Merged

jtuyls merged 1 commit into
iree-org:mainfrom
jtuyls:dont-hoist-scalar-set-encoding

Conversation

@jtuyls

@jtuyls jtuyls commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

Resolves: #21307

When hoisting encodings for a dispatch containing encodings on a scalar tensor, the hoisted set_encoding on the scalar tensor results in a new encoding dispatch and codegen for this fails in LLVM Translation with:

<unknown>:0: error: LLVM Translation failed for operation: builtin.unrealized_conversion_cast

Check the issue above for a repro.

@jtuyls
jtuyls merged commit 4765a6b into iree-org:main Jul 15, 2025
@jtuyls
jtuyls deleted the dont-hoist-scalar-set-encoding branch July 15, 2025 19:27
IanWood1 pushed a commit to IanWood1/iree that referenced this pull request Jul 18, 2025
…ee-org#21376)

Resolves: iree-org#21307

When hoisting encodings for a dispatch containing encodings on a scalar
tensor, the hoisted set_encoding on the scalar tensor results in a new
encoding dispatch and codegen for this fails in LLVM Translation with:
```
<unknown>:0: error: LLVM Translation failed for operation: builtin.unrealized_conversion_cast
```
Check the issue above for a repro.

Signed-off-by: Jorn Tuyls <[email protected]>
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
…1376)

Resolves: #21307

When hoisting encodings for a dispatch containing encodings on a scalar
tensor, the hoisted set_encoding on the scalar tensor results in a new
encoding dispatch and codegen for this fails in LLVM Translation with:
```
<unknown>:0: error: LLVM Translation failed for operation: builtin.unrealized_conversion_cast
```
Check the issue above for a repro.

Signed-off-by: Jorn Tuyls <[email protected]>
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.

[GPU][DT] Fix encoding on scalar tensor failure

3 participants