llvm-project
39f8f90c - [SPIR-V] Lower undef nested in a constant aggregate (#204377)

Commit
153 days ago
[SPIR-V] Lower undef nested in a constant aggregate (#204377) A constant aggregate whose element is itself an aggregate `undef` was never lowered to a placeholder. The raw aggregate operand reached IRTranslator on the llvm.spv.const.composite call and aborted with "unable to translate instruction". A similar issue was found and fixed during SPV_KHR_poison_freeze implementation. So instead of re-inventing a wheel - unify lowering with poison. Addresses the following observation: https://github.com/llvm/llvm-project/pull/198037#discussion_r3304013315
Author
Parents
Loading