Constant generation produces potentially invalid OpConstantNull
Open
bug
- Dominant language
- LLVM
- Stars
- 729
- Forks
- 110
- Avg merge
- 17h 51m
- Merged PRs (30d)
- 23
Description
Constant generation in SPIRProducerPass has a case for a constant being a null value `Cst->isNullValue()`. SPIR-V does not allow all types to be used with OpConstantNull (e.g. samplers and images). A different opcode must be generated for those cases (maybe OpUndef).
Contributor guide
Assessment
This issue has not been assessed yet.