Skip to content

opt: invalid SPIR-V produced with --eliminate-dead-branches --merge-return. In OpPhi instruction, ID definition does not dominate its parent. (GraphicsFuzz ref: spirv-tools-use-not-dominated-from-swiftshader) #2702

@paulthomson

Description

@paulthomson

To reproduce:

spirv-opt --eliminate-dead-branches --merge-return shader_reduced_final.comp.spv -o temp.comp.spv
spirv-val temp.comp.spv

spirv-tools-use-not-dominated-from-swiftshader.zip

Found by GraphicsFuzz.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions