llvm / llvm/llvm-project

[SPIR-V] SPIR-V back-end is generating no-op conversions

Open
#160,614 1 comment 0 reactions 0 assignees View on GitHub
question SPIR-V
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

We're trying to switch the Mesa OpenCL infra over to using the SPIR-V back-end in LLVM and a bunch of OpenCL CTS tests are failing to validate with:
```
(file=input,line=0,column=0,index=59): Expected input to have different bit width from Result Type: UConvert
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the OpenCL CTS validation failures while using the SPIR-V back-end, then trace the handling of UConvert values that produces the reported bit-width error. Done means the affected conversions are emitted with valid differing input and result widths and the failing CTS tests validate successfully.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.