Don't remove SPIR-V blocks before codegen.
A removed block releases its instructions, so Module::idToInstruction suddenly contains dangling references. The original motivation for block removal was to skip some unreachable blocks, but that's already achieved by InReadableOrder.cpp. Also updated stale comments.
This commit is contained in:
parent
33782795d9
commit
ed55bcd9f8
17 changed files with 1233 additions and 1252 deletions
|
|
@ -50,4 +50,6 @@ Linked vertex stage:
|
|||
19: 6(int) IAdd 17 18
|
||||
Store 8(i) 19
|
||||
Branch 10
|
||||
12: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue