SPIRV-Tools/tools
Toomas Remmelg 1dc2458060 Add a loop fusion pass.
This pass will look for adjacent loops that are compatible and legal to
be fused.

Loops are compatible if:

- they both have one induction variable
- they have the same upper and lower bounds
    - same initial value
    - same condition
- they have the same update step
- they are adjacent
- there are no break/continue in either of them

Fusion is legal if:

- fused loops do not have any dependencies with dependence distance
  greater than 0 that did not exist in the original loops.
- there are no function calls in the loops (could have side-effects)
- there are no barriers in the loops

It will fuse all such loops as long as the number of registers used for
the fused loop stays under the threshold defined by
max_registers_per_loop.
2018-05-01 15:40:37 -04:00
..
as Support SPIR-V 1.3 and Vulkan 1.1 2018-03-06 15:17:31 -05: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 Support SPIR-V 1.3 and Vulkan 1.1 2018-03-06 15:17:31 -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: Allow modules to be partially linked 2018-02-27 12:21:13 -05:00
opt Add a loop fusion pass. 2018-05-01 15:40:37 -04:00
stats Consistently include latest spirv.h header file. 2018-02-27 18:47:29 -05:00
val Fixes #1471. Adds missing environments to spriv-val help 2018-04-12 13:11:52 -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