More aggressively prune unreachable code as follows.
When no control flow edges reach a merge block or continue target:
- delete their contents so that:
- a merge block becomes OpLabel, then OpUnreachable
- a continue target becomes OpLabel, then an OpBranch back to the
loop header
- any basic block which is dominated by such a merge block or continue
target is removed as well.
- decorations targeting the removed instructions are removed.
Enables the SPIR-V builder post-processing step the GLSLANG_WEB case.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| AST.FromFile.cpp | Loading commit data... | |
| BuiltInResource.FromFile.cpp | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| Config.FromFile.cpp | Loading commit data... | |
| HexFloat.cpp | Loading commit data... | |
| Hlsl.FromFile.cpp | Loading commit data... | |
| Initializer.h | Loading commit data... | |
| Link.FromFile.Vk.cpp | Loading commit data... | |
| Link.FromFile.cpp | Loading commit data... | |
| Pp.FromFile.cpp | Loading commit data... | |
| README.md | Loading commit data... | |
| Remap.FromFile.cpp | Loading commit data... | |
| Settings.cpp | Loading commit data... | |
| Settings.h | Loading commit data... | |
| Spv.FromFile.cpp | Loading commit data... | |
| TestFixture.cpp | Loading commit data... | |
| TestFixture.h | Loading commit data... | |
| main.cpp | Loading commit data... | |
| pch.cpp | Loading commit data... | |
| pch.h | Loading commit data... |