SPIRV-Tools/test/tools
Steven Perron 82663f34c9
Check for unreachable blocks in merge-return. (#1966)
Merge return assumes that the only unreachable blocks are those needed
to keep the structured cfg valid.  Even those must be essentially empty
blocks.

If this is not the case, we get unpredictable behaviour.  This commit
add a check in merge return, and emits an error if it is not the case.

Added a pass of dead branch elimination before merge return in both the
performance and size passes.  It is a precondition of merge return.

Fixes #1962.
2018-10-10 15:18:15 -04:00
..
opt Check for unreachable blocks in merge-return. (#1966) 2018-10-10 15:18:15 -04:00
CMakeLists.txt Add testing framework for tools. 2018-08-17 15:03:14 -04:00
expect_nosetest.py Add testing framework for tools. 2018-08-17 15:03:14 -04:00
expect.py Add testing framework for tools. 2018-08-17 15:03:14 -04:00
placeholder.py Add testing framework for tools. 2018-08-17 15:03:14 -04:00
spirv_test_framework_nosetest.py Add testing framework for tools. 2018-08-17 15:03:14 -04:00
spirv_test_framework.py Add testing framework for tools. 2018-08-17 15:03:14 -04:00