This repository was archived by the owner on Oct 9, 2019. It is now read-only.

Description
llvm-spirv tool moves OpUndef instruction from function to program scope. It is bug in the llvm-spirv tool.
Step to reproduce:
- Convert attached spv file to binary (llvm-spirv.exe -to-binary reproducer.spt.txt)
- Convert spv file back to text.
- Undef will not be in body of function.
After fixing this bug, please implement LIT test for OpUndef in function.
reproducer.spt.txt