SPIRV-Tools/tools
Diego Novillo 4ba9dcc8a0 Implement SSA CCP (SSA Conditional Constant Propagation).
This implements the conditional constant propagation pass proposed in

Constant propagation with conditional branches,
Wegman and Zadeck, ACM TOPLAS 13(2):181-210.

The main logic resides in CCPPass::VisitInstruction.  Instruction that
may produce a constant value are evaluated with the constant folder. If
they produce a new constant, the instruction is considered interesting.
Otherwise, it's considered varying (for unfoldable instructions) or
just not interesting (when not enough operands have a constant value).

The other main piece of logic is in CCPPass::VisitBranch.  This
evaluates the selector of the branch.  When it's found to be a known
value, it computes the destination basic block and sets it.  This tells
the propagator which branches to follow.

The patch required extensions to the constant manager as well. Instead
of hashing the Constant pointers, this patch changes the constant pool
to hash the contents of the Constant.  This allows the lookups to be
done using the actual values of the Constant, preventing duplicate
definitions.
2017-12-21 14:29:45 -05:00
..
as spirv-as: Fail for unrecognized long option 2017-09-05 19:49:59 -04:00
cfg Re-format files in source, source/opt, source/util, source/val and tools. 2017-11-08 14:03:08 -05:00
comp Add new compression algorithm and models 2017-11-21 17:32:58 -05:00
dis Re-format files in source, source/opt, source/util, source/val and tools. 2017-11-08 14:03:08 -05: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
link Linker: Fix incorrect exit status. 2017-11-29 11:20:36 -05:00
opt Implement SSA CCP (SSA Conditional Constant Propagation). 2017-12-21 14:29:45 -05:00
stats Move SetContextMessageConsumer into libspirv namespace 2017-11-23 13:56:12 -05:00
val Add option to relax validation of store types. 2017-10-28 18:48:21 -04:00
CMakeLists.txt Add new compression algorithm and models 2017-11-21 17:32:58 -05:00
io.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00