google / clspv

Clspv is a compiler for OpenCL C to Vulkan compute shaders
Apache License 2.0
607 stars 88 forks source link

Handle PHINode in LowerAddrSpaceCast better #1364

Closed bmanga closed 4 months ago

bmanga commented 4 months ago

1348 added initial support for phi nodes in LowerAddrSpaceCast.

However, it made the assumption that the first entry was never dependent on the node itself and could be used to figure out the type of the replacement node. So get a crash with an alternative solution.