Add documentation for licm option to the spirv-opt help. (#2179)

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/2165.
This commit is contained in:
Steven Perron 2018-12-07 14:11:15 -05:00 committed by GitHub
parent 0bc66a8ba9
commit aab6f4073f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,9 +189,9 @@ Options (in lexicographical order):
Looks for instructions in the same basic block that compute the
same value, and deletes the redundant ones.
--loop-fission
Splits any top level loops in which the register pressure has exceeded
a given threshold. The threshold must follow the use of this flag and
must be a positive integer value.
Splits any top level loops in which the register pressure has
exceeded a given threshold. The threshold must follow the use of
this flag and must be a positive integer value.
--loop-fusion
Identifies adjacent loops with the same lower and upper bound.
If this is legal, then merge the loops into a single loop.
@ -199,6 +199,9 @@ Options (in lexicographical order):
registers too much, while reducing the number of loads from
memory. Takes an additional positive integer argument to set
the maximum number of registers.
--loop-invariant-code-motion
Identifies code in loops that has the same value for every
iteration of the loop, and move it to the loop pre-header.
--loop-unroll
Fully unrolls loops marked with the Unroll flag
--loop-unroll-partial