Skip to content

[SPIR-V] GET_ID instruction generated after the instruction using its result #108845

Closed
@Keenuts

Description

@Keenuts

MIR register usage must be dominated by their definitions.
The SPIR-V backend generates the instruction after the user, meaning we break this requirement.

Seems like the fix is in SPIRVPreLegalizer.cpp, the setInsertPt call might have the wrong param.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions