llvm-project
d2dab978 - [SPIR-V] Decompose bitcasts involving bool vectors (#187960)

Commit
22 days ago
[SPIR-V] Decompose bitcasts involving bool vectors (#187960) OpTypeBool has no defined bitwidth in SPIR-V, so OpBitcast is invalid for boolean vector types. Decompose `<N x i1> <-> iN` bitcasts into element-wise extract/shift/OR and AND/icmp/insert sequences during IR preprocessing. Fixes: https://github.com/kuhar/iree/blob/amdgcn-spirv/spirv-repros/bitcast_crash.ll and https://github.com/llvm/llvm-project/issues/185815
Author
Parents
Loading