Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Don't zero-initialize MImageObj in 1.2.1 image (#12012)
image_accessor constructor was generating following IR in O0 mode: ``` store target("spirv.Image", void, 1, 0, 0, 0, 0, 0, 0) zeroinitializer, ptr addrspace(4) %MImageObj, align 8 ``` As a target extension type, spirv.Image currently allows zeroinit. However, OpConstantNull in spirv spec doesn't allow image type. Therefore, we're not able to get sycl 1.2.1 image working in O0 mode. This PR solves the issue by not initializing MImageObj.
- Loading branch information