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

llvm-spirv from text to spv: OpUndef is moved from function #169

@echuraev

Description

@echuraev

llvm-spirv tool moves OpUndef instruction from function to program scope. It is bug in the llvm-spirv tool.
Step to reproduce:

  1. Convert attached spv file to binary (llvm-spirv.exe -to-binary reproducer.spt.txt)
  2. Convert spv file back to text.
  3. Undef will not be in body of function.
    After fixing this bug, please implement LIT test for OpUndef in function.

reproducer.spt.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions