diff options
author | David Neto <dneto@google.com> | 2019-10-21 14:50:31 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2019-10-29 15:33:54 -0400 |
commit | 8c3d5b4b6cc784a4dcd7999977d32c2ef5ec51ed (patch) | |
tree | 2d4eeaae5ad9428028318a8edb23937b850192f8 /Test/baseResults/spv.for-notest.vert.out | |
parent | b131630e7c749a5dc19faa458024260c71fb170f (diff) | |
download | glslang-8c3d5b4b6cc784a4dcd7999977d32c2ef5ec51ed.tar.gz |
SPIR-V: Aggressively prune unreachable merge, continue target
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.
Diffstat (limited to 'Test/baseResults/spv.for-notest.vert.out')
-rw-r--r-- | Test/baseResults/spv.for-notest.vert.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/baseResults/spv.for-notest.vert.out b/Test/baseResults/spv.for-notest.vert.out index 36c4a96a..c9d5b4cd 100644 --- a/Test/baseResults/spv.for-notest.vert.out +++ b/Test/baseResults/spv.for-notest.vert.out @@ -38,5 +38,5 @@ spv.for-notest.vert Store 8(i) 19 Branch 10 12: Label - Return + Unreachable FunctionEnd |