third_party_spirv-tools/tools
GregF 9de4e69856 Add AggressiveDCEPass
Create aggressive dead code elimination pass
This pass eliminates unused code from functions. In addition,
it detects and eliminates code which may have spurious uses but which do
not contribute to the output of the function. The most common cause of
such code sequences is summations in loops whose result is no longer used
due to dead code elimination. This optimization has additional compile
time cost over standard dead code elimination.

This pass only processes entry point functions. It also only processes
shaders with logical addressing. It currently will not process functions
with function calls. It currently only supports the GLSL.std.450 extended
instruction set. It currently does not support any extensions.

This pass will be made more effective by first running passes that remove
dead control flow and inlines function calls.

This pass can be especially useful after running Local Access Chain
Conversion, which tends to cause cycles of dead code to be left after
Store/Load elimination passes are completed. These cycles cannot be
eliminated with standard dead code elimination.

Additionally: This transform uses a whitelist of instructions that it
knows do have side effects, (a.k.a. combinators).  It assumes other
instructions have side effects: it will not remove them, and assumes
they have side effects via their ID operands.
2017-07-10 11:30:25 -04:00
..
as Add SPIR-V 1.2 support, for OpenCL 2.2 2017-05-15 17:10:07 -04:00
cfg Add SPIR-V 1.2 support, for OpenCL 2.2 2017-05-15 17:10:07 -04:00
comp Added compression tool tools/spirv-markv. Work in progress. 2017-06-30 12:22:48 -04:00
dis Add SPIR-V 1.2 support, for OpenCL 2.2 2017-05-15 17:10:07 -04:00
emacs Define variable to skip installation 2017-07-04 12:24:44 -04:00
lesspipe Define variable to skip installation 2017-07-04 12:24:44 -04:00
opt Add AggressiveDCEPass 2017-07-10 11:30:25 -04:00
stats Stats analyzer aggregates OpConstant usage 2017-05-09 11:50:15 -04:00
val Add SPIR-V 1.2 support, for OpenCL 2.2 2017-05-15 17:10:07 -04:00
CMakeLists.txt Define variable to skip installation 2017-07-04 12:24:44 -04:00
io.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00