Issue 108845
Summary [SPIR-V] GET_ID instruction generated after the instruction using its result
Labels backend:SPIR-V
Assignees
Reporter 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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to